Class DataDrivenEnumDetailsRequest
- java.lang.Object
-
- com.broadleafcommerce.catalogbrowse.domain.DataDrivenEnumDetailsRequest
-
- All Implemented Interfaces:
Serializable
public class DataDrivenEnumDetailsRequest extends Object implements Serializable
DTO containing information pertaining to a request to be sent to theCatalogProviderto retrieve a data driven enum's details.- Author:
- Sunny Yu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataDrivenEnumDetailsRequest()DataDrivenEnumDetailsRequest(Set<String> dataDrivenEnumIds, boolean checkIfAssociatedCategoryExist, org.springframework.util.MultiValueMap<String,String> attributes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)org.springframework.util.MultiValueMap<String,String>getAttributes()Map holding any additional attributes passed in the request not matching any defined properties.com.broadleafcommerce.data.tracking.core.context.ContextInfogetContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.Set<String>getDataDrivenEnumIds()Thedata driven enum IDsof requestedDataDrivenEnums.inthashCode()booleanisCheckIfAssociatedCategoryExist()Whether 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.StringtoString()
-
-
-
Method Detail
-
getDataDrivenEnumIds
public Set<String> 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
public org.springframework.util.MultiValueMap<String,String> 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
public void setDataDrivenEnumIds(Set<String> dataDrivenEnumIds)
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
public void setAttributes(org.springframework.util.MultiValueMap<String,String> attributes)
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.
-
canEqual
protected boolean canEqual(Object other)
-
-