Class SharedCodeAuditSummaryEndpoint

java.lang.Object
com.broadleafcommerce.promotion.offer.web.endpoint.SharedCodeAuditSummaryEndpoint

@FrameworkRestController @DataRouteByExample(OfferAuditDetail.class) @FrameworkMapping("/shared-code-audit-summaries") public class SharedCodeAuditSummaryEndpoint extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • readSharedCodeAuditSummaryById

      @FrameworkGetMapping("/{id}") @Policy(permissionRoots="SHARED_CODE_AUDIT_SUMMARY") public SharedCodeAuditSummary readSharedCodeAuditSummaryById(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id)
    • readAllSharedCodeAuditSummaries

      @FrameworkGetMapping @Policy(permissionRoots="SHARED_CODE_AUDIT_SUMMARY") public org.springframework.data.domain.Page<SharedCodeAuditSummary> readAllSharedCodeAuditSummaries(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters)
    • readAllSharedCodeAuditSummariesByCampaignId

      @FrameworkGetMapping(params="campaignTrackingId") @Policy(permissionRoots="SHARED_CODE_AUDIT_SUMMARY") public org.springframework.data.domain.Page<SharedCodeAuditSummary> readAllSharedCodeAuditSummariesByCampaignId(@RequestParam(name="campaignTrackingId") String campaignId, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters)
    • countUsesLeftForSharedCode

      @FrameworkGetMapping("/{offerCodeId}/uses-left") @Policy(permissionRoots="SHARED_CODE_AUDIT_SUMMARY") public int countUsesLeftForSharedCode(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("offerCodeId") String offerCodeId)
    • findCodeUsabilityByCode

      @FrameworkGetMapping("/{code}/usability-info") @Policy(permissionRoots="SHARED_CODE_AUDIT_SUMMARY") public com.broadleafcommerce.promotion.offer.client.web.context.CodeUsabilityInfo findCodeUsabilityByCode(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("code") String code)
    • validateSharedCodeUsage

      @FrameworkGetMapping("/validate-uses") @Policy(permissionRoots="SHARED_CODE_AUDIT_SUMMARY") public com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult validateSharedCodeUsage(jakarta.servlet.http.HttpServletRequest request, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam List<String> codes)
    • deleteSharedCodeAuditSummary

      @FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="SHARED_CODE_AUDIT_SUMMARY") public void deleteSharedCodeAuditSummary(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id)
    • isParentEntityActive

      protected boolean isParentEntityActive(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, OfferCode offerCode)
    • updateAuditVerificationProperties

      public void updateAuditVerificationProperties(String flow, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • getAuditVerificationProperties

      protected AuditVerficationProperties getAuditVerificationProperties()