public class PromotionFacadeClient extends AbstractPromotionFacadeClient
This class provides common methods that this and other utility class to the Promotion facade can use. This class also provides a set of convenient Java API to represent particular Promotion operations. This set of Java API also include APIs for Web based requests to transform the name value pair request into the appropriate request documents.
CHANGE_VERB_ACTION_ADD, CHANGE_VERB_ACTION_CHANGE, CHANGE_VERB_ACTION_CREATE, CHANGE_VERB_ACTION_DELETE, CHANGE_VERB_ACTION_UPDATE
Constructor and Description |
---|
PromotionFacadeClient()
Creates an instance of the client to communicate with the Promotion facade.
|
PromotionFacadeClient(BusinessContextType businessContext,
javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Promotion facade.
|
Modifier and Type | Method and Description |
---|---|
AcknowledgePromotionDataAreaType |
activatePromotion(java.util.List promotionIdList,
int storeId)
This method activates promotions.
|
AcknowledgePromotionDataAreaType |
activatePromotion(java.lang.String promotionId,
int storeId)
This method activates an promotion.
|
AcknowledgePromotionDataAreaType |
archivePromotion(java.util.List promotionIdList,
int storeId)
This method archives promotions.
|
AcknowledgePromotionDataAreaType |
archivePromotion(java.lang.String promotionId,
int storeId)
This method builds and then sends a request to archive a promotion.
|
AcknowledgePromotionDataAreaType |
deactivatePromotion(java.util.List promotionIdList,
int storeId)
This method deactivates promotions.
|
AcknowledgePromotionDataAreaType |
deactivatePromotion(java.lang.String promotionId,
int storeId)
This method deactivates an promotion.
|
AcknowledgePromotionDataAreaType |
deletePromotion(java.util.List promotionIdList,
int storeId)
This method deletes promotions.
|
AcknowledgePromotionDataAreaType |
deletePromotion(java.lang.String promotionId,
int storeId)
This method builds and then sends a request to delete a promotion.
|
changePromoCode, changePromotion, getPromoCode, getPromoCode, getPromoCode, getPromotion, getPromotion, getPromotion, processPromoCode, processPromotion
createActionExpression, createChangeVerb, createGetVerb, createGetVerb, createProcessVerb, createSyncVerb
public PromotionFacadeClient()
public PromotionFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
businessContext
- The default business context to associate with the messages
when making requests.callbackHandler
- Used for authentication purposes so the controller can give
the authentication information to the transport when required.public AcknowledgePromotionDataAreaType deletePromotion(java.lang.String promotionId, int storeId) throws PromotionException
promotionId
- The ID of the promotion to be deleted.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
object that contains the ID of the deleted promotion.PromotionException
public AcknowledgePromotionDataAreaType deletePromotion(java.util.List promotionIdList, int storeId) throws PromotionException
promotionIdList
- The list of IDs of the promotions to be deleted.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
that contains the IDs of the deleted promotions.PromotionException
public AcknowledgePromotionDataAreaType archivePromotion(java.lang.String promotionId, int storeId) throws PromotionException
promotionId
- The ID of the promotion to be archived.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
object that contains the ID of the archived promotion.PromotionException
public AcknowledgePromotionDataAreaType archivePromotion(java.util.List promotionIdList, int storeId) throws PromotionException
promotionIdList
- The list of IDs of the promotions to be archived.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
that contains the IDs of the archived promotions.PromotionException
public AcknowledgePromotionDataAreaType activatePromotion(java.lang.String promotionId, int storeId) throws PromotionException
promotionId
- The ID of the promotion to be activated.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
that contains the ID of the activated promotion.PromotionException
public AcknowledgePromotionDataAreaType activatePromotion(java.util.List promotionIdList, int storeId) throws PromotionException
promotionIdList
- The list of IDs of the promotions to be activated.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
that contains the IDs of the activated promotions.PromotionException
public AcknowledgePromotionDataAreaType deactivatePromotion(java.lang.String promotionId, int storeId) throws PromotionException
promotionId
- The ID of the promotion to be deactivated.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
that contains the ID of the deactivated promotion.PromotionException
public AcknowledgePromotionDataAreaType deactivatePromotion(java.util.List promotionIdList, int storeId) throws PromotionException
promotionIdList
- The list of IDs of the promotions to be deactivated.storeId
- The store ID of the store the promotions are inAcknowledgePromotionDataAreaType
that contains the IDs of the activated promotions.PromotionException