Class CustomerSegmentResolutionProperties
java.lang.Object
com.broadleafcommerce.customer.client.context.CustomerSegmentResolutionProperties
Properties related to resolving
CustomerSegments
.- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRepresents a list of additional auth token claims to add as attributes to theResolveCustomerSegmentsRequest
for rules to be evaluated against.Represents the list of attribute from aWebRequest
to store onResolveCustomerSegmentsRequest
.boolean
Whether to allowrule-based
CustomerSegments
withCustomerSegment.isInternalEvaluationRequired()
set to true to be sent to the customer service to be evaluated.void
setAdditionalClaims
(List<String> additionalClaims) Represents a list of additional auth token claims to add as attributes to theResolveCustomerSegmentsRequest
for rules to be evaluated against.void
setEvaluatingRuleBasedSegmentsExternallyAllowed
(boolean evaluatingRuleBasedSegmentsExternallyAllowed) Whether to allowrule-based
CustomerSegments
withCustomerSegment.isInternalEvaluationRequired()
set to true to be sent to the customer service to be evaluated.void
setRequestAttributeList
(List<String> requestAttributeList) Represents the list of attribute from aWebRequest
to store onResolveCustomerSegmentsRequest
.
-
Constructor Details
-
CustomerSegmentResolutionProperties
public CustomerSegmentResolutionProperties()
-
-
Method Details
-
getRequestAttributeList
Represents the list of attribute from aWebRequest
to store onResolveCustomerSegmentsRequest
. This is used to whitelist request attributes used when evaluating dynamicCustomerSegments
. The attribute name should be matched by a field name configured in metadata for theCustomerSegment.getRealtimeMatchRule()
rule-builder. -
getAdditionalClaims
Represents a list of additional auth token claims to add as attributes to theResolveCustomerSegmentsRequest
for rules to be evaluated against. The claim name should be matched by a field name configured in metadata for theCustomerSegment.getRealtimeMatchRule()
rule-builder. -
isEvaluatingRuleBasedSegmentsExternallyAllowed
public boolean isEvaluatingRuleBasedSegmentsExternallyAllowed()Whether to allowrule-based
CustomerSegments
withCustomerSegment.isInternalEvaluationRequired()
set to true to be sent to the customer service to be evaluated. This requires an additional request to evaluate these segments outside the client which can have important performance impacts and is disabled by default. -
setRequestAttributeList
Represents the list of attribute from aWebRequest
to store onResolveCustomerSegmentsRequest
. This is used to whitelist request attributes used when evaluating dynamicCustomerSegments
. The attribute name should be matched by a field name configured in metadata for theCustomerSegment.getRealtimeMatchRule()
rule-builder. -
setAdditionalClaims
Represents a list of additional auth token claims to add as attributes to theResolveCustomerSegmentsRequest
for rules to be evaluated against. The claim name should be matched by a field name configured in metadata for theCustomerSegment.getRealtimeMatchRule()
rule-builder. -
setEvaluatingRuleBasedSegmentsExternallyAllowed
public void setEvaluatingRuleBasedSegmentsExternallyAllowed(boolean evaluatingRuleBasedSegmentsExternallyAllowed) Whether to allowrule-based
CustomerSegments
withCustomerSegment.isInternalEvaluationRequired()
set to true to be sent to the customer service to be evaluated. This requires an additional request to evaluate these segments outside the client which can have important performance impacts and is disabled by default.
-