com.adobe.cq.commerce.impl.promotion.JcrVoucherImpl
instead.@Deprecated public class AbstractJcrVoucher extends SlingAdaptable implements Voucher
Modifier and Type | Field and Description |
---|---|
static long |
VOUCHER_DEFAULT_PRIORITY
Deprecated.
|
static String |
VOUCHER_RESOURCE_TYPE
Deprecated.
|
Constructor and Description |
---|
AbstractJcrVoucher(Resource resource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<AdapterType> |
adaptTo(Class<AdapterType> type)
Deprecated.
|
String |
getCode()
Deprecated.
Get the voucher code.
|
ValueMap |
getConfig()
Deprecated.
Return a map of implementation-specific configuration properties.
|
String |
getDescription()
Deprecated.
The voucher description, visible only to authors.
|
String |
getInvalidMessage(SlingHttpServletRequest request)
Deprecated.
Return a shopper-visible message detailing why the voucher is invalid.
|
String |
getMessage()
Deprecated.
A description visible to shoppers.
|
String |
getMessage(SlingHttpServletRequest request)
Deprecated.
Return a shopper-visible message detailing the current status.
|
String |
getPath()
Deprecated.
Get the path.
|
long |
getPriority()
Deprecated.
If the voucher is part of a campaign, return the campaign's priority.
|
Promotion |
getPromotion()
Deprecated.
The promotion associated with the voucher.
|
String |
getTitle()
Deprecated.
The voucher title, visible only to authors.
|
boolean |
isValid(SlingHttpServletRequest request)
Deprecated.
Valid if the parent campaign's onTime has been reached and the offTime hasn't,
or if the times are not specified.
|
public static final String VOUCHER_RESOURCE_TYPE
public static final long VOUCHER_DEFAULT_PRIORITY
public AbstractJcrVoucher(Resource resource) throws CommerceException
CommerceException
public String getCode()
Voucher
public String getPath()
public String getTitle()
public String getDescription()
getDescription
in interface Voucher
public String getMessage()
public long getPriority()
getPriority
in interface Voucher
public boolean isValid(SlingHttpServletRequest request)
public String getInvalidMessage(SlingHttpServletRequest request)
getInvalidMessage
in interface Voucher
public Promotion getPromotion()
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
public String getMessage(SlingHttpServletRequest request)
Voucher
getMessage
in interface Voucher
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"