Class AuditEndpoint
java.lang.Object
com.broadleafcommerce.audit.web.endpoint.AuditEndpoint
@FrameworkRestController
@FrameworkMapping("/audit")
@DataRouteByExample(AuditHeader.class)
public class AuditEndpoint
extends Object
API for Fetching
AuditEvent
related data. Separate methods available for
AuditHeader
and AuditDetail
retrieval.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<AuditHeader>
readAll
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit headers with RSQL filtering.org.springframework.data.domain.Page<AuditHeader>
readAllByAccount
(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit headers with RSQL filtering.org.springframework.data.domain.Page<AuditHeader>
readAllByCustomer
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit headers with RSQL filtering.org.springframework.data.domain.Page<AuditDetail>
readAllByHeader
(String headerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit details with RSQL filtering.org.springframework.data.domain.Page<AuditDetail>
readAllByHeaderAndAccount
(String headerId, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit details with RSQL filtering.org.springframework.data.domain.Page<AuditDetail>
readAllByHeaderAndCustomer
(String headerId, String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit details with RSQL filtering.
-
Constructor Details
-
AuditEndpoint
-
-
Method Details
-
readAll
@FrameworkGetMapping @Policy(permissionRoots="AUDIT") public org.springframework.data.domain.Page<AuditHeader> readAll(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit headers with RSQL filtering. SeeAuditService.readAllHeaders(Node, Pageable, ContextInfo)
. Suitable for admin calls.- Parameters:
context
- Data tracking context informationpage
- Paging configfilters
- RSQL filters (if any)- Returns:
- The filtered page of results
-
readAllByCustomer
@FrameworkGetMapping(params="customerId") @Policy(permissionRoots="AUDIT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="customer_id") public org.springframework.data.domain.Page<AuditHeader> readAllByCustomer(@RequestParam("customerId") String customerId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit headers with RSQL filtering. SeeAuditService.readAllHeadersByCustomer(String, Node, Pageable, ContextInfo)
. Suitable for admin or customer calls.- Parameters:
customerId
- The customer identifiercontext
- Data tracking context informationpage
- Paging configfilters
- RSQL filters (if any)- Returns:
- The filtered page of results
-
readAllByAccount
@FrameworkGetMapping(params="accountId") @Policy(permissionRoots="AUDIT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id,parent_accts") public org.springframework.data.domain.Page<AuditHeader> readAllByAccount(@RequestParam("accountId") String accountId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit headers with RSQL filtering. SeeAuditService.readAllHeaders(Node, Pageable, ContextInfo)
. Suitable for admin or account associated customer calls.- Parameters:
accountId
- The account identifiercontext
- Data tracking context informationpage
- Paging configfilters
- RSQL filters (if any)- Returns:
- The filtered page of results
-
readAllByHeader
@FrameworkGetMapping("/{headerId}") @Policy(permissionRoots="AUDIT") public org.springframework.data.domain.Page<AuditDetail> readAllByHeader(@PathVariable("headerId") String headerId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit details with RSQL filtering. SeeAuditService.readAllDetailsByHeader(String, Node, Pageable, ContextInfo)
. Suitable for admin calls.- Parameters:
headerId
- The id of the parent headercontext
- Data tracking context informationpage
- Paging configfilters
- RSQL filters (if any)- Returns:
- The filtered page of results
-
readAllByHeaderAndAccount
@FrameworkGetMapping(value="/{headerId}", params="accountId") @Policy(permissionRoots="AUDIT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=1, ownerIdentifier="acct_id,parent_accts") public org.springframework.data.domain.Page<AuditDetail> readAllByHeaderAndAccount(@PathVariable("headerId") String headerId, @RequestParam("accountId") String accountId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit details with RSQL filtering. SeeAuditService.readAllDetailsByHeaderAndAccount(String, String, Node, Pageable, ContextInfo)
. Suitable for admin or account associated customer calls.- Parameters:
headerId
- The id of the parent headeraccountId
- The account identifiercontext
- Data tracking context informationpage
- Paging configfilters
- RSQL filters (if any)- Returns:
- The filtered page of results
-
readAllByHeaderAndCustomer
@FrameworkGetMapping(value="/{headerId}", params="customerId") @Policy(permissionRoots="AUDIT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=1, ownerIdentifier="customer_id") public org.springframework.data.domain.Page<AuditDetail> readAllByHeaderAndCustomer(@PathVariable("headerId") String headerId, @RequestParam("customerId") String customerId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Read multiple audit details with RSQL filtering. SeeAuditService.readAllDetailsByHeaderAndCustomer(String, String, Node, Pageable, ContextInfo)
. Suitable for admin or customer calls.- Parameters:
headerId
- The id of the parent headercustomerId
- The customer identifiercontext
- Data tracking context informationpage
- Paging configfilters
- RSQL filters (if any)- Returns:
- The filtered page of results
-