Class Offer
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.Offer
- All Implemented Interfaces:
Serializable
Represents an offer
- Author:
- juliap
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.getId()The context ID of the offer.getName()Display name for this offer.inthashCode()voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidThe context ID of the offer.voidDisplay name for this offer.toString()
-
Constructor Details
-
Offer
public Offer()
-
-
Method Details
-
getId
The context ID of the offer.- Returns:
- the context ID of the offer.
-
getName
Display name for this offer.- Returns:
- the name of this offer
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
setId
The context ID of the offer.- Parameters:
id- the context ID of the offer.
-
setName
Display name for this offer.- Parameters:
name- the name of this offer
-
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-