Class ProductTerm
java.lang.Object
com.broadleafcommerce.catalog.domain.product.ProductTerm
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware,com.broadleafcommerce.translation.mapping.SubIdentifiable,Serializable
public class ProductTerm
extends Object
implements Serializable, com.broadleafcommerce.translation.mapping.SubIdentifiable, com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
Represents a configurable contract term for a
Product. Terms are useful for configuring
different prices depending on the length of the term. The default term is used for the initial
display price.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
- See Also:
-
Field Summary
Fields inherited from interface com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
DEFAULT_FIELD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.EmbeddedContextStateA subset ofTrackinginformation to expose the context state for this object.intTime interval (number of seconds, minutes, hours, etc.)The type of time interval (seconds, minutes, hours, etc.)getId()Identifier used for tracking purposes, primarily related to keeping track of which translations belong to which value in the list.getName()A display name for the terminthashCode()booleanWhether this term is the default term for the productvoidsetContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDefault(boolean isDefault) Whether this term is the default term for the productvoidsetDurationLength(int durationLength) Time interval (number of seconds, minutes, hours, etc.)voidsetDurationType(String durationType) The type of time interval (seconds, minutes, hours, etc.)voidIdentifier used for tracking purposes, primarily related to keeping track of which translations belong to which value in the list.voidA display name for the termtoString()
-
Constructor Details
-
ProductTerm
public ProductTerm()
-
-
Method Details
-
getId
Identifier used for tracking purposes, primarily related to keeping track of which translations belong to which value in the list.- Specified by:
getIdin interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
-
getName
A display name for the term -
getDurationLength
public int getDurationLength()Time interval (number of seconds, minutes, hours, etc.) -
getDurationType
The type of time interval (seconds, minutes, hours, etc.) -
isDefault
public boolean isDefault()Whether this term is the default term for the product -
getContextState
public com.broadleafcommerce.data.tracking.core.EmbeddedContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
Identifier used for tracking purposes, primarily related to keeping track of which translations belong to which value in the list.- Specified by:
setIdin interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
-
setName
A display name for the term -
setDurationLength
public void setDurationLength(int durationLength) Time interval (number of seconds, minutes, hours, etc.) -
setDurationType
The type of time interval (seconds, minutes, hours, etc.) -
setDefault
public void setDefault(boolean isDefault) Whether this term is the default term for the product -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-