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 booleanbooleanThis flag indicates whether this subscription'sendOfTermStrategycan be modified after declaration on the subscription.com.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.)Indicates the action to be performed at the end of term.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 productvoidsetAllowEndOfTermStrategyModification(Boolean allowEndOfTermStrategyModification) This flag indicates whether this subscription'sendOfTermStrategycan be modified after declaration on the subscription.voidsetContextState(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.)voidsetEndOfTermStrategy(String endOfTermStrategy) Indicates the action to be performed at the end of term.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 -
getEndOfTermStrategy
Indicates the action to be performed at the end of term.- Since:
- Catalog Services 2.3.0, Release Train 2.3.0
-
getAllowEndOfTermStrategyModification
This flag indicates whether this subscription'sendOfTermStrategycan be modified after declaration on the subscription.- Since:
- Catalog Services 2.3.0, Release Train 2.3.0
-
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 -
setEndOfTermStrategy
Indicates the action to be performed at the end of term.- Since:
- Catalog Services 2.3.0, Release Train 2.3.0
-
setAllowEndOfTermStrategyModification
This flag indicates whether this subscription'sendOfTermStrategycan be modified after declaration on the subscription.- Since:
- Catalog Services 2.3.0, Release Train 2.3.0
-
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
-