Class DiscriminatedProperties<P>
java.lang.Object
com.broadleafcommerce.cartoperation.properties.DiscriminatedProperties<P>
- Direct Known Subclasses:
CartOperationCheckoutProperties
,ExternalPaymentTransactionCallbackRedirectionProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issueprotected String
getApplicationIdFromContext
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected <T> T
protected String
getTenantIdFromContext
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
setApplication
(Map<String, P> application) CaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issuevoid
-
Constructor Details
-
DiscriminatedProperties
public DiscriminatedProperties()
-
-
Method Details
-
getField
-
getApplicationIdFromContext
@Nullable protected String getApplicationIdFromContext(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getTenantIdFromContext
@Nullable protected String getTenantIdFromContext(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getApplication
CaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issue -
setApplication
CaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issue -
getTenant
-
setTenant
-