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 Summary
Modifier and TypeFieldDescriptionstatic final String
protected final CampaignService<Campaign>
protected final OfferAndOfferCodeUsabilityService
protected final OfferAndOfferCodeUsageValidator
protected final OfferCodeService<OfferCode>
protected final OfferService<Offer>
protected final SharedCodeSummaryService<SharedCodeAuditSummary>
-
Constructor Summary
ConstructorDescriptionSharedCodeAuditSummaryEndpoint
(OfferCodeService<OfferCode> offerCodeService, OfferService<Offer> offerService, CampaignService<Campaign> campaignService, SharedCodeSummaryService<SharedCodeAuditSummary> sharedCodeSummaryService, OfferAndOfferCodeUsabilityService offerAndOfferCodeUsabilityService, OfferAndOfferCodeUsageValidator offerandOfferCodeUsageValidator, AuditVerficationProperties auditVerificationProperties) -
Method Summary
Modifier and TypeMethodDescriptionint
countUsesLeftForSharedCode
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String offerCodeId) void
deleteSharedCodeAuditSummary
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id) com.broadleafcommerce.promotion.offer.client.web.context.CodeUsabilityInfo
findCodeUsabilityByCode
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String code) protected AuditVerficationProperties
protected boolean
isParentEntityActive
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, OfferCode offerCode) org.springframework.data.domain.Page<SharedCodeAuditSummary>
readAllSharedCodeAuditSummaries
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) org.springframework.data.domain.Page<SharedCodeAuditSummary>
readAllSharedCodeAuditSummariesByCampaignId
(String campaignId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) readSharedCodeAuditSummaryById
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id) void
updateAuditVerificationProperties
(String flow, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult
validateSharedCodeUsage
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, List<String> codes)
-
Field Details
-
BASE_URI
- See Also:
-
offerCodeService
-
offerService
-
campaignService
-
offerAndOfferCodeUsabilityService
-
offerandOfferCodeUsageValidator
-
-
Constructor Details
-
Method Details
-
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) -
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