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 the CatalogProvider to retrieve a data driven enum's details.
Author:
Sunny Yu
See Also:
  • Constructor Details

    • DataDrivenEnumDetailsRequest

      public DataDrivenEnumDetailsRequest()
    • DataDrivenEnumDetailsRequest

      public DataDrivenEnumDetailsRequest(Set<String> dataDrivenEnumIds, boolean checkIfAssociatedCategoryExist, org.springframework.util.MultiValueMap<String,String> attributes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
  • Method Details

    • getDataDrivenEnumIds

      public Set<String> getDataDrivenEnumIds()
      Returns:
      The data driven enum IDs of requested DataDrivenEnums
    • isCheckIfAssociatedCategoryExist

      public boolean isCheckIfAssociatedCategoryExist()
      Whether this request should also check if an associated category exists based on the expected category url for the data 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()
      The ContextInfo derived from the original request containing tenant and sandbox info.
      Returns:
      The ContextInfo derived from the original request
    • setDataDrivenEnumIds

      public void setDataDrivenEnumIds(Set<String> dataDrivenEnumIds)
      Parameters:
      dataDrivenEnumIds - The data driven enum IDs of requested DataDrivenEnums
    • setCheckIfAssociatedCategoryExist

      public void setCheckIfAssociatedCategoryExist(boolean checkIfAssociatedCategoryExist)
      Whether this request should also check if an associated category exists based on the expected category url for the data driven enum value.
      Parameters:
      checkIfAssociatedCategoryExist - Whether this request should also check if an associated category exists based on the data 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)
      The ContextInfo derived from the original request containing tenant and sandbox info.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object