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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.getId()getName()inthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidvoidvoidsetTemplates(List<OptionTemplate> templates) toString()
-
Constructor Details
-
OptionTemplateGroup
public OptionTemplateGroup()
-
-
Method Details
-
getId
- Returns:
- the context ID of this product option group
-
getName
- Returns:
- the customer-facing name of this product option group
-
getTemplates
- Returns:
- references to the
OptionTemplatesin this group
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
- Parameters:
id- the context ID of this product option group
-
setName
- Parameters:
name- the customer-facing name of this product option group
-
setTemplates
- Parameters:
templates- references to theOptionTemplatesin this group
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-