Class OfferCodeImpl
java.lang.Object
org.broadleafcommerce.core.offer.domain.OfferCodeImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<OfferCode>,Status,OfferCode
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends OfferCode>
CreateResponse<G>booleangetId()intReturns the maximum number of times that this code can be used regardless of Order or CustomergetOffer()intgetUses()Deprecated.inthashCode()booleanisActive()booleanIndicates that this code has a limit on how many times it can be used.booleanIndicates that this is an unlimited-use code.voidsetArchived(Character archived) voidsetEmailAddress(String emailAddress) voidsetEndDate(Date endDate) voidvoidsetMaxUses(int maxUses) Sets the maximum number of times that this code can be used regardless of Order or CustomervoidvoidsetOfferCode(String offerCode) voidvoidsetStartDate(Date startDate) voidsetUses(int uses) Deprecated.
-
Field Details
-
id
-
offer
-
offerCode
-
offerCodeStartDate
-
offerCodeEndDate
-
maxUses
-
uses
Deprecated. -
emailAddress
-
archiveStatus
-
orders
-
sbClonedOffer
-
deproxiedOffer
-
-
Constructor Details
-
OfferCodeImpl
public OfferCodeImpl()
-
-
Method Details
-
getId
-
setId
-
getOffer
-
setOffer
-
getOfferCode
- Specified by:
getOfferCodein interfaceOfferCode
-
setOfferCode
- Specified by:
setOfferCodein interfaceOfferCode
-
getMaxUses
public int getMaxUses()Description copied from interface:OfferCodeReturns the maximum number of times that this code can be used regardless of Order or Customer0 indicates unlimited usage.
- Specified by:
getMaxUsesin interfaceOfferCode- Returns:
-
setMaxUses
public void setMaxUses(int maxUses) Description copied from interface:OfferCodeSets the maximum number of times that this code can be used regardless of Order or Customer0 indicates unlimited usage.
- Specified by:
setMaxUsesin interfaceOfferCode
-
isUnlimitedUse
public boolean isUnlimitedUse()Description copied from interface:OfferCodeIndicates that this is an unlimited-use code. By default this is true ifOfferCode.getMaxUses()== 0- Specified by:
isUnlimitedUsein interfaceOfferCode
-
isLimitedUse
public boolean isLimitedUse()Description copied from interface:OfferCodeIndicates that this code has a limit on how many times it can be used. By default this is true ifOfferCode.getMaxUses()> 0- Specified by:
isLimitedUsein interfaceOfferCode
-
getUses
Deprecated. -
setUses
Deprecated. -
getEmailAddress
- Specified by:
getEmailAddressin interfaceOfferCode
-
setEmailAddress
- Specified by:
setEmailAddressin interfaceOfferCode
-
getStartDate
- Specified by:
getStartDatein interfaceOfferCode
-
setStartDate
- Specified by:
setStartDatein interfaceOfferCode
-
getEndDate
- Specified by:
getEndDatein interfaceOfferCode
-
setEndDate
- Specified by:
setEndDatein interfaceOfferCode
-
getOrders
-
setOrders
-
getArchived
- Specified by:
getArchivedin interfaceStatus
-
setArchived
- Specified by:
setArchivedin interfaceStatus
-
isActive
public boolean isActive() -
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends OfferCode> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<OfferCode>- Throws:
CloneNotSupportedException
-