Class OptionTemplateGroup

java.lang.Object
com.broadleafcommerce.catalog.domain.option.OptionTemplateGroup
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class OptionTemplateGroup extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
An "option template group" represents a grouping of related OptionTemplate. This is meant to simplify Product maintenance by allowing users to select an OptionTemplateGroup to create variations instead of reselecting each individual OptionTemplate.

Note that by default the options generated from a template are not kept in sync with changes to the template.

Author:
Phillip Verheyden (phillipuniverse)
See Also:
  • Constructor Details

    • OptionTemplateGroup

      public OptionTemplateGroup()
  • Method Details

    • getId

      public String getId()
      Returns:
      the context ID of this product option group
    • getName

      public String getName()
      Returns:
      the customer-facing name of this product option group
    • getTemplates

      public List<OptionTemplate> getTemplates()
      Returns:
      references to the OptionTemplates in this group
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      Parameters:
      id - the context ID of this product option group
    • setName

      public void setName(String name)
      Parameters:
      name - the customer-facing name of this product option group
    • setTemplates

      public void setTemplates(List<OptionTemplate> templates)
      Parameters:
      templates - references to the OptionTemplates in this group
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • 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