Class MarketingMessageRetrievalEndpoint
java.lang.Object
com.broadleafcommerce.promotion.offer.web.endpoint.MarketingMessageRetrievalEndpoint
@FrameworkRestController
@FrameworkMapping("/retrieve-marketing-messages")
@DataRouteByExample(MarketingMessages.class)
public class MarketingMessageRetrievalEndpoint
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected final MarketingMessageResolver<MarketingMessage,
Offer> -
Constructor Summary
ConstructorDescriptionMarketingMessageRetrievalEndpoint
(AuditVerficationProperties auditVerificationProperties, MarketingMessageResolver<MarketingMessage, Offer> marketingMessageResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected AuditVerficationProperties
getMarketingMessagesForRequest
(MarketingMessageRequest marketingMessageRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
updateAuditVerificationProperties
(String flow, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, boolean skipChecksByDefault)
-
Field Details
-
BASE_URI
- See Also:
-
marketingMessageResolver
-
-
Constructor Details
-
MarketingMessageRetrievalEndpoint
public MarketingMessageRetrievalEndpoint(AuditVerficationProperties auditVerificationProperties, MarketingMessageResolver<MarketingMessage, Offer> marketingMessageResolver)
-
-
Method Details
-
getMarketingMessagesForRequest
@FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="OFFER") public MarketingMessageResponse<MarketingMessage> getMarketingMessagesForRequest(@RequestBody MarketingMessageRequest marketingMessageRequest, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
updateAuditVerificationProperties
public void updateAuditVerificationProperties(String flow, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, boolean skipChecksByDefault) -
getAuditVerificationProperties
-