Class TenantEndpoint
java.lang.Object
com.broadleafcommerce.tenant.web.endpoint.TenantEndpoint
@FrameworkRestController
@FrameworkMapping("/tenants")
@DataRouteByExample(Tenant.class)
public class TenantEndpoint
extends Object
API for managing
Tenant
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected com.broadleafcommerce.data.tracking.core.policy.trackable.TrackablePolicyUtils
protected TenantService<Tenant>
org.springframework.data.domain.Page<Tenant>
readAll
(javax.servlet.http.HttpServletRequest request, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) void
setPolicyUtils
(com.broadleafcommerce.data.tracking.core.policy.trackable.TrackablePolicyUtils policyUtils) protected void
-
Constructor Details
-
TenantEndpoint
-
-
Method Details
-
setPolicyUtils
@Autowired public void setPolicyUtils(@Nullable com.broadleafcommerce.data.tracking.core.policy.trackable.TrackablePolicyUtils policyUtils) -
validateGlobalOnlyOperation
protected void validateGlobalOnlyOperation() -
readAll
@FrameworkGetMapping @Policy(permissionRoots="TENANT", operationTypes=READ) public org.springframework.data.domain.Page<Tenant> readAll(javax.servlet.http.HttpServletRequest request, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) -
readById
-
update
-
replace
-
create
-
delete
@FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="TENANT", operationTypes=DELETE) public void delete(javax.servlet.http.HttpServletRequest request, @PathVariable("id") String id) -
getService
-
getPolicyUtils
@Nullable protected com.broadleafcommerce.data.tracking.core.policy.trackable.TrackablePolicyUtils getPolicyUtils()
-