com.ibm.commerce.marketing.commands
Class ResolvePromotionCodeTaskCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.marketing.commands.AbstractResolvePromotionCodeTaskCmdImpl
-
- com.ibm.commerce.marketing.commands.ResolvePromotionCodeTaskCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ResolvePromotionCodeTaskCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class ResolvePromotionCodeTaskCmdImpl extends AbstractResolvePromotionCodeTaskCmdImpl implements ResolvePromotionCodeTaskCmd
The class is used to resolve promotion codes.This class extends
AbstractResolvePromotionCodeTaskCmdImpl
.This is the default implementation for
ResolvePromotionCodeTaskCmd
task command.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.commerce.marketing.commands.ResolvePromotionCodeTaskCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description ResolvePromotionCodeTaskCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Short
getPromotionCodeType()
This method returns the implementation type that is used for promotion code.PromotionKey[]
getPromotionKeys()
This is the method declaration to get the PromotionKey array.void
performExecute()
The main business logic to execute the command.void
reset()
This method is called after a command has been executed.void
setPromotionCode(java.lang.String promotionCode)
This is the method declaration to Set Promotion Code.void
setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.void
setPromotionStatus(java.util.List listPromotionStatus)
This is the method declaration to Set Promotion Status.void
setSeparator(java.lang.String separator)
This is the method declaration to Set Separator.void
setStoreId(java.lang.Integer storeId)
This is the method declaration to Set Store Id.-
Methods inherited from class com.ibm.commerce.marketing.commands.AbstractResolvePromotionCodeTaskCmdImpl
validateParameters
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Method Detail
-
setPromotionCode
public void setPromotionCode(java.lang.String promotionCode)
Description copied from interface:ResolvePromotionCodeTaskCmd
This is the method declaration to Set Promotion Code.- Specified by:
setPromotionCode
in interfaceResolvePromotionCodeTaskCmd
- Overrides:
setPromotionCode
in classAbstractResolvePromotionCodeTaskCmdImpl
- Parameters:
promotionCode
- A String representing the promotion code to be used in the command.- See Also:
ResolvePromotionCodeTaskCmd.setPromotionCode(java.lang.String)
-
setStoreId
public void setStoreId(java.lang.Integer storeId)
Description copied from interface:ResolvePromotionCodeTaskCmd
This is the method declaration to Set Store Id.- Specified by:
setStoreId
in interfaceResolvePromotionCodeTaskCmd
- Overrides:
setStoreId
in classAbstractResolvePromotionCodeTaskCmdImpl
- Parameters:
storeId
- A String representing the store id information to be used in the command.- See Also:
ResolvePromotionCodeTaskCmd.setStoreId(java.lang.Integer)
-
setPromotionStatus
public void setPromotionStatus(java.util.List listPromotionStatus)
Description copied from interface:ResolvePromotionCodeTaskCmd
This is the method declaration to Set Promotion Status.- Specified by:
setPromotionStatus
in interfaceResolvePromotionCodeTaskCmd
- Overrides:
setPromotionStatus
in classAbstractResolvePromotionCodeTaskCmdImpl
- Parameters:
listPromotionStatus
- A List representing the allowed promotion status.- See Also:
ResolvePromotionCodeTaskCmd.setPromotionStatus(java.util.List)
-
getPromotionKeys
public PromotionKey[] getPromotionKeys()
Description copied from interface:ResolvePromotionCodeTaskCmd
This is the method declaration to get the PromotionKey array.- Specified by:
getPromotionKeys
in interfaceResolvePromotionCodeTaskCmd
- Overrides:
getPromotionKeys
in classAbstractResolvePromotionCodeTaskCmdImpl
- Returns:
- An PromotionKey array representing the resolved promotions' key information.
- See Also:
ResolvePromotionCodeTaskCmd.getPromotionKeys()
-
setSeparator
public void setSeparator(java.lang.String separator)
Description copied from interface:ResolvePromotionCodeTaskCmd
This is the method declaration to Set Separator.- Specified by:
setSeparator
in interfaceResolvePromotionCodeTaskCmd
- Overrides:
setSeparator
in classAbstractResolvePromotionCodeTaskCmdImpl
- Parameters:
separator
- The delimiter used to separate different codes.- See Also:
ResolvePromotionCodeTaskCmd.setSeparator(java.lang.String)
-
setPromotionCodeType
public void setPromotionCodeType(java.lang.Short promotionCodeType)
Description copied from interface:ResolvePromotionCodeTaskCmd
This method sets the implementation type that is used for promotion code. 1 indicates the promotion code is implemented with unique promotion code framework.- Specified by:
setPromotionCodeType
in interfaceResolvePromotionCodeTaskCmd
- Overrides:
setPromotionCodeType
in classAbstractResolvePromotionCodeTaskCmdImpl
- Parameters:
promotionCodeType
- A Short representing the promotion code implementation type to be used in the command.- See Also:
ResolvePromotionCodeTaskCmd.setPromotionCodeType(java.lang.Short)
-
getPromotionCodeType
public java.lang.Short getPromotionCodeType()
Description copied from interface:ResolvePromotionCodeTaskCmd
This method returns the implementation type that is used for promotion code. 1 indicates the promotion code is implemented with unique promotion code framework.- Specified by:
getPromotionCodeType
in interfaceResolvePromotionCodeTaskCmd
- Overrides:
getPromotionCodeType
in classAbstractResolvePromotionCodeTaskCmdImpl
- Returns:
- A Short value.
- See Also:
ResolvePromotionCodeTaskCmd.getPromotionCodeType()
-
performExecute
public void performExecute() throws ECException
The main business logic to execute the command.The business logic of this command implementation is responsible for resolving promotion code.
- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractResolvePromotionCodeTaskCmdImpl
- Throws:
ECException
-
reset
public void reset()
Description copied from class:AbstractECTargetableCommand
This method is called after a command has been executed. It is used to reset its states variables. After the call to reset, the command should be able to be executed again.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractResolvePromotionCodeTaskCmdImpl
- See Also:
AbstractECTargetableCommand.reset()
-
-