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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getId()
getName()
int
hashCode()
void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
void
void
setTemplates
(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
OptionTemplates
in this group
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information 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 theOptionTemplates
in this group
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-