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 TypeMethodDescriptionprotected booleanbooleanintTime 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 productvoidsetDefault(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
-
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 -
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 -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-