public class CreateUniquePromotionCodeCmdImpl extends TaskCommandImpl implements CreateUniquePromotionCodeCmd
defaultCommandClassName, NAME
Constructor and Description |
---|
CreateUniquePromotionCodeCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getPxCdpoolId()
Returns the newly created promotion code's ID.
|
java.util.Map |
getPxCdpoolIds()
Returns a map containing the Promotion Code to PX_CDPOOL_ID Mapping.
|
void |
performExecute()
This method will create the new unique promotion code(s) for the specified promotion id.
|
void |
setPromotionCode(java.lang.String promotionCode)
Sets the code for the promotion code.
|
void |
setPromotionCodes(java.util.List<java.lang.String> promotionCodes)
Sets the codes for the promotion codes.
|
void |
setPromotionId(java.lang.String promotionId)
Sets the promotion id that the promotion code is associated with.
|
void |
setStoreId(java.lang.String storeId)
Sets the store id that the promotion code belongs to.
|
void |
validateParameters()
This method validates that the required parameters, Promotion Id, Store Id and Promotion code
have been specified.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public void performExecute() throws ECApplicationException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECApplicationException
public void setPromotionId(java.lang.String promotionId)
setPromotionId
in interface CreateUniquePromotionCodeCmd
promotionId
- Promotion ID of the promotion that the code is associated with.public void setStoreId(java.lang.String storeId)
setStoreId
in interface CreateUniquePromotionCodeCmd
storeId
- The store id that the promotion code belongs to.public void setPromotionCode(java.lang.String promotionCode)
setPromotionCode
in interface CreateUniquePromotionCodeCmd
promotionCode
- The code for the promotion code.public java.lang.Long getPxCdpoolId()
getPxCdpoolId
in interface CreateUniquePromotionCodeCmd
public void validateParameters() throws ECApplicationException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
public void setPromotionCodes(java.util.List<java.lang.String> promotionCodes)
setPromotionCodes
in interface CreateUniquePromotionCodeCmd
promotionCodes
- public java.util.Map getPxCdpoolIds()
getPxCdpoolIds
in interface CreateUniquePromotionCodeCmd