Class DataDrivenEnumDetailsRequest
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.DataDrivenEnumDetailsRequest
- All Implemented Interfaces:
Serializable
DTO containing information pertaining to a request to be sent to the
CatalogProvider to
retrieve a data driven enum's details.- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataDrivenEnumDetailsRequest(Set<String> dataDrivenEnumIds, boolean checkIfAssociatedCategoryExist, org.springframework.util.MultiValueMap<String, String> attributes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMap holding any additional attributes passed in the request not matching any defined properties.com.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.Thedata driven enum IDsof requestedDataDrivenEnums.inthashCode()booleanWhether this request should also check if an associated category exists based on the expected category url for thedata driven enum value.voidsetAttributes(org.springframework.util.MultiValueMap<String, String> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetCheckIfAssociatedCategoryExist(boolean checkIfAssociatedCategoryExist) Whether this request should also check if an associated category exists based on the expected category url for thedata driven enum value.voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetDataDrivenEnumIds(Set<String> dataDrivenEnumIds) Thedata driven enum IDsof requestedDataDrivenEnums.toString()
-
Constructor Details
-
DataDrivenEnumDetailsRequest
public DataDrivenEnumDetailsRequest() -
DataDrivenEnumDetailsRequest
-
-
Method Details
-
getDataDrivenEnumIds
Thedata driven enum IDsof requestedDataDrivenEnums.- Returns:
- The
data driven enum IDsof requestedDataDrivenEnums
-
isCheckIfAssociatedCategoryExist
public boolean isCheckIfAssociatedCategoryExist()Whether this request should also check if an associated category exists based on the expected category url for thedata driven enum value.- Returns:
- true if it should be checked, otherwise false
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
setDataDrivenEnumIds
Thedata driven enum IDsof requestedDataDrivenEnums.- Parameters:
dataDrivenEnumIds- Thedata driven enum IDsof requestedDataDrivenEnums
-
setCheckIfAssociatedCategoryExist
public void setCheckIfAssociatedCategoryExist(boolean checkIfAssociatedCategoryExist) Whether this request should also check if an associated category exists based on the expected category url for thedata driven enum value.- Parameters:
checkIfAssociatedCategoryExist- Whether this request should also check if an associated category exists based on thedata driven enum value
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-