Class DataDrivenEnumDetailsContext
java.lang.Object
com.broadleafcommerce.catalog.domain.enumeration.commerce.DataDrivenEnumDetailsContext
- All Implemented Interfaces:
Serializable
Information required to build
DataDrivenEnumDetails
for a commerce-facing data driven
enum details section. This contains important context information for determining which data
driven enum to gather details for and, potentially, the extent of the details.- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
ConstructorDescriptionDataDrivenEnumDetailsContext
(DataDrivenEnumDetailsRequest request, DataDrivenEnum resolvedDataDrivenEnum) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
TheDataDrivenEnumDetailsRequest
made that initiated theDataDrivenEnumDetails
build process.The resolved data driven enum for therequest
.int
hashCode()
boolean
void
setAttributes
(org.springframework.util.MultiValueMap<String, String> attributes) void
setCheckIfAssociatedCategoryExist
(boolean checkIfAssociatedCategoryExist) void
setDataDrivenEnumIds
(Set<String> dataDrivenEnumIds) void
setRequest
(DataDrivenEnumDetailsRequest request) TheDataDrivenEnumDetailsRequest
made that initiated theDataDrivenEnumDetails
build process.void
setResolvedDataDrivenEnum
(DataDrivenEnum resolvedDataDrivenEnum) The resolved data driven enum for therequest
.toString()
-
Constructor Details
-
DataDrivenEnumDetailsContext
public DataDrivenEnumDetailsContext() -
DataDrivenEnumDetailsContext
public DataDrivenEnumDetailsContext(DataDrivenEnumDetailsRequest request, DataDrivenEnum resolvedDataDrivenEnum)
-
-
Method Details
-
getRequest
TheDataDrivenEnumDetailsRequest
made that initiated theDataDrivenEnumDetails
build process.- Returns:
- The
DataDrivenEnumDetailsRequest
made that initiated theDataDrivenEnumDetails
build process.
-
getResolvedDataDrivenEnum
The resolved data driven enum for therequest
.- Returns:
- The resolved data driven enum for the
request
.
-
setRequest
TheDataDrivenEnumDetailsRequest
made that initiated theDataDrivenEnumDetails
build process.- Parameters:
request
- TheDataDrivenEnumDetailsRequest
made that initiated theDataDrivenEnumDetails
build process.
-
setResolvedDataDrivenEnum
The resolved data driven enum for therequest
.- Parameters:
resolvedDataDrivenEnum
- The resolved data driven enum for therequest
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getDataDrivenEnumIds
-
isCheckIfAssociatedCategoryExist
public boolean isCheckIfAssociatedCategoryExist() -
getAttributes
-
setDataDrivenEnumIds
-
setCheckIfAssociatedCategoryExist
public void setCheckIfAssociatedCategoryExist(boolean checkIfAssociatedCategoryExist) -
setAttributes
-