Class DataDrivenEnumDetailsRequest
java.lang.Object
com.broadleafcommerce.catalog.domain.enumeration.commerce.DataDrivenEnumDetailsRequest
- All Implemented Interfaces:
Serializable
A structure representing a request for a commerce-facing data driven enum details section
included identifying information for the data driven enum for which to get details and
interesting context information.
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataDrivenEnumDetailsRequest(Set<String> dataDrivenEnumIds, boolean checkIfAssociatedCategoryExist, org.springframework.util.MultiValueMap<String, String> attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMap holding any additional attributes passed in the request not matching any defined properties.Thedata driven enum IDsmatching the data driven enums for whichDataDrivenEnumDetailsare requested.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.voidsetDataDrivenEnumIds(Set<String> dataDrivenEnumIds) Thedata driven enum IDsmatching the data driven enums for whichDataDrivenEnumDetailsare requested.toString()
-
Constructor Details
-
DataDrivenEnumDetailsRequest
-
DataDrivenEnumDetailsRequest
public DataDrivenEnumDetailsRequest()
-
-
Method Details
-
getDataDrivenEnumIds
Thedata driven enum IDsmatching the data driven enums for whichDataDrivenEnumDetailsare requested.- Returns:
- The
DataDrivenEnum.getId()data driven enum IDs} matching the data driven enums for whichDataDrivenEnumDetailsare requested
-
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. -
setDataDrivenEnumIds
Thedata driven enum IDsmatching the data driven enums for whichDataDrivenEnumDetailsare requested.- Parameters:
dataDrivenEnumIds- TheDataDrivenEnum.getId()data driven enum IDs} matching the data driven enums for whichDataDrivenEnumDetailsare requested
-
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. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-