@Encoded public class CouponHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String | FORMAT_GROUP_NAME
The constant FORMAT_GROUP_NAME
|
protected CouponHelper | helper
Helper to retrieve and deal with BOD.
|
static java.lang.String | RESOURCE_MAPPING_KEY
The Constant RESOURCE_MAPPING_KEY.
|
static java.lang.String | RESOURCE_NAME
The Constant RESOURCE_NAME.
|
Constructor and Description |
---|
CouponHandler() |
Modifier and Type | Method and Description |
---|---|
protected DefaultDocumentationStrategy | createDocumentationStrategy(java.util.Locale locale)
Create a documentation strategy for the current handler.
|
javax.ws.rs.core.Response | deleteCouponById(java.lang.String storeId, java.lang.String couponId, java.lang.String responseFormat)
This method deletes the coupon by coupon id.
|
javax.ws.rs.core.Response | getCoupon(java.lang.String storeId, java.lang.String responseFormat, int pageNumber, int pageSize)
This method returns the coupon list for the current shopper.
|
java.lang.String | getFormattingGroupName()
Returns the formatting group name for resolving the struts action of the formatting JSP.
|
CouponHelper | getHelper()
This method returns the BOD helper associated with the Coupon resource.
|
java.lang.String | getResourceName()
This method returns the name of the resource used primarily to determine the representation of the resource.
|
void | postProcess(java.util.Map<java.lang.String,java.lang.Object> responseMap)
Method to provide post process in out of box JSON/XML entity providers after each DataObject has been converted to a Map and before constructing the REST response.
|
void | preProcess(java.util.Map<java.lang.String,java.lang.Object> responseMap)
This method can be used to do the pre-processing of the response map before the entity provider is invoked passing the response map.
|
protected javax.ws.rs.core.Response | renderCoupon(java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat, int pageNumber, int pageSize)
This method performs a GetCoupon service request and render the response.
|
protected javax.ws.rs.core.Response | renderEmptyCoupon(java.lang.String responseFormat)
This method performs to render the empty result response.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_MAPPING_KEY
public static final java.lang.String FORMAT_GROUP_NAME
protected CouponHelper helper
public java.lang.String getResourceName()
public java.lang.String getFormattingGroupName()
public CouponHelper getHelper()
public javax.ws.rs.core.Response getCoupon(java.lang.String storeId, java.lang.String responseFormat, int pageNumber, int pageSize)
public javax.ws.rs.core.Response deleteCouponById(java.lang.String storeId, java.lang.String couponId, java.lang.String responseFormat)
protected javax.ws.rs.core.Response renderEmptyCoupon(java.lang.String responseFormat)
protected javax.ws.rs.core.Response renderCoupon(java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat, int pageNumber, int pageSize)
public void preProcess(java.util.Map<java.lang.String,java.lang.Object> responseMap)
public void postProcess(java.util.Map<java.lang.String,java.lang.Object> responseMap)
protected DefaultDocumentationStrategy createDocumentationStrategy(java.util.Locale locale)