Class ProductTerm
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ProductTerm
- All Implemented Interfaces:
Serializable
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 Browse Service 2.1.0, Release Train 2.2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.intTime interval (number of seconds, minutes, hours, etc.)The type of time interval (seconds, minutes, hours, etc.)inthashCode()booleanWhether this term is the default term for the productvoidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Map holding any additional attributes passed in the request not matching any defined properties.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.)toString()
-
Constructor Details
-
ProductTerm
public ProductTerm()
-
-
Method Details
-
addAdditionalAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name- Name of the additional attributevalue- Value of the additional attribute
-
getAdditionalAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
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 -
getAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
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 -
setAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-