Class CatalogAccessPolicyEndpoint
java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.CatalogAccessPolicyEndpoint
@FrameworkRestController
@FrameworkMapping("/catalog-access-policies")
@DataRouteByExample(CatalogAccessPolicy.class)
public class CatalogAccessPolicyEndpoint
extends Object
- Author:
- Nathan Moore (nathandmoore)
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreate
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, CatalogAccessPolicy req) org.springframework.http.ResponseEntity<Void>
deleteById
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id) protected CatalogAccessPolicyService<CatalogAccessPolicy>
org.springframework.data.domain.Page<CatalogAccessPolicy>
readAll
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String query, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page) readById
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id) replace
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CatalogAccessPolicy req) update
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, CatalogAccessPolicy req)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
CatalogAccessPolicyEndpoint
-
-
Method Details
-
readAll
@FrameworkGetMapping @Policy(permissionRoots="CATALOG_ACCESS_POLICY") public org.springframework.data.domain.Page<CatalogAccessPolicy> readAll(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam(value="q",required=false) String query, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50,sort="name",direction=ASC) org.springframework.data.domain.Pageable page) -
readById
@FrameworkGetMapping("/{id}") @Policy(permissionRoots="CATALOG_ACCESS_POLICY") public CatalogAccessPolicy readById(jakarta.servlet.http.HttpServletRequest request, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id) -
update
@FrameworkPatchMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="CATALOG_ACCESS_POLICY") public CatalogAccessPolicy update(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id, @RequestBody CatalogAccessPolicy req) -
replace
@FrameworkPutMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="CATALOG_ACCESS_POLICY") public CatalogAccessPolicy replace(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id, @RequestBody CatalogAccessPolicy req) -
create
@FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="CATALOG_ACCESS_POLICY") public CatalogAccessPolicy create(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestBody CatalogAccessPolicy req) -
deleteById
@FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="CATALOG_ACCESS_POLICY") public org.springframework.http.ResponseEntity<Void> deleteById(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id) -
getService
-