public class OfferWrapper extends BaseWrapper implements APIWrapper<Offer>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
automatic |
protected String |
description |
protected BroadleafEnumerationTypeWrapper |
discountType |
protected String |
endDate |
protected String |
marketingMessage |
protected int |
maxUses |
protected String |
name |
protected Long |
offerId |
protected BroadleafEnumerationTypeWrapper |
offerType |
protected String |
startDate |
context| Constructor and Description |
|---|
OfferWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAutomatic() |
String |
getDescription() |
BroadleafEnumerationTypeWrapper |
getDiscountType() |
String |
getEndDate() |
String |
getMarketingMessage() |
int |
getMaxUses() |
String |
getName() |
Long |
getOfferId() |
BroadleafEnumerationTypeWrapper |
getOfferType() |
String |
getStartDate() |
void |
setAutomatic(Boolean automatic) |
void |
setDescription(String description) |
void |
setDiscountType(BroadleafEnumerationTypeWrapper discountType) |
void |
setEndDate(String endDate) |
void |
setMarketingMessage(String marketingMessage) |
void |
setMaxUses(int maxUses) |
void |
setName(String name) |
void |
setOfferId(Long offerId) |
void |
setOfferType(BroadleafEnumerationTypeWrapper offerType) |
void |
setStartDate(String startDate) |
void |
wrapDetails(Offer model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(Offer model,
javax.servlet.http.HttpServletRequest request) |
createElementWrappers, setApplicationContextprotected Long offerId
protected String startDate
protected String endDate
protected String marketingMessage
protected String description
protected String name
protected Boolean automatic
protected BroadleafEnumerationTypeWrapper offerType
protected BroadleafEnumerationTypeWrapper discountType
protected int maxUses
public void wrapDetails(Offer model, javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<Offer>public void wrapSummary(Offer model, javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<Offer>public Long getOfferId()
public void setOfferId(Long offerId)
offerId - the offerId to setpublic String getStartDate()
public void setStartDate(String startDate)
startDate - the startDate to setpublic String getEndDate()
public void setEndDate(String endDate)
endDate - the endDate to setpublic String getMarketingMessage()
public void setMarketingMessage(String marketingMessage)
marketingMessage - the marketingMessage to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic String getName()
public void setName(String name)
name - the name to setpublic Boolean getAutomatic()
public void setAutomatic(Boolean automatic)
automatic - the automatic to setpublic BroadleafEnumerationTypeWrapper getOfferType()
public void setOfferType(BroadleafEnumerationTypeWrapper offerType)
offerType - the offerType to setpublic BroadleafEnumerationTypeWrapper getDiscountType()
public void setDiscountType(BroadleafEnumerationTypeWrapper discountType)
discountType - the discountType to setpublic int getMaxUses()
public void setMaxUses(int maxUses)
maxUses - the maxUses to setCopyright © 2015. All Rights Reserved.