public class PromotionsController extends BaseController
DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE| Constructor and Description |
|---|
PromotionsController() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<PromotionOption> |
extractOptions(java.lang.String options) |
CommercePromotionFacade |
getCommercePromotionFacade() |
PromotionData |
getPromotionByCode(java.lang.String code,
java.lang.String options)
Web service handler for the getPromotionByCode call.
|
protected java.util.List<PromotionData> |
getPromotionList(java.lang.String type) |
protected java.util.List<PromotionData> |
getPromotionList(java.lang.String type,
java.lang.String promotionGroup) |
PromotionDataList |
getPromotions(java.lang.String type,
java.lang.String promotionGroup) |
protected void |
validateTypeParameter(java.lang.String type) |
handleErrorInternal, handleModelNotFoundException, sanitizepublic PromotionDataList getPromotions(java.lang.String type, java.lang.String promotionGroup) throws RequestParameterException
RequestParameterExceptionpublic PromotionData getPromotionByCode(java.lang.String code, java.lang.String options)
code - - the unique code used to identify a promotionoptions - - a String enumerating the detail level, values are BASIC (included by default), EXTENDED. Combine by
using a ',', which needs to be encoded as part of a URI using URLEncoding: %2C.PromotionData which will be marshaled to JSON or XML based on Accept-Headerprotected void validateTypeParameter(java.lang.String type)
throws RequestParameterException
RequestParameterExceptionprotected java.util.List<PromotionData> getPromotionList(java.lang.String type, java.lang.String promotionGroup)
protected java.util.List<PromotionData> getPromotionList(java.lang.String type)
protected java.util.Set<PromotionOption> extractOptions(java.lang.String options)
public CommercePromotionFacade getCommercePromotionFacade()
Copyright © 2018 SAP SE. All Rights Reserved.