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
ConstructorDescriptionDataDrivenEnumDetailsRequest
(Set<String> dataDrivenEnumIds, boolean checkIfAssociatedCategoryExist, org.springframework.util.MultiValueMap<String, String> attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Map holding any additional attributes passed in the request not matching any defined properties.Thedata driven enum IDs
matching the data driven enums for whichDataDrivenEnumDetails
are requested.int
hashCode()
boolean
Whether this request should also check if an associated category exists based on the expected category url for thedata driven enum value
.void
setAttributes
(org.springframework.util.MultiValueMap<String, String> attributes) Map holding any additional attributes passed in the request not matching any defined properties.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
.void
setDataDrivenEnumIds
(Set<String> dataDrivenEnumIds) Thedata driven enum IDs
matching the data driven enums for whichDataDrivenEnumDetails
are requested.toString()
-
Constructor Details
-
DataDrivenEnumDetailsRequest
-
DataDrivenEnumDetailsRequest
public DataDrivenEnumDetailsRequest()
-
-
Method Details
-
getDataDrivenEnumIds
Thedata driven enum IDs
matching the data driven enums for whichDataDrivenEnumDetails
are requested.- Returns:
- The
DataDrivenEnum.getId()
data driven enum IDs} matching the data driven enums for whichDataDrivenEnumDetails
are 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 IDs
matching the data driven enums for whichDataDrivenEnumDetails
are requested.- Parameters:
dataDrivenEnumIds
- TheDataDrivenEnum.getId()
data driven enum IDs} matching the data driven enums for whichDataDrivenEnumDetails
are 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
-