com.ibm.commerce.marketing.commands
Class GetPromotionCodesByOrderIdTaskCmdImpl
- 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.AbstractGetPromotionCodesByOrderIdTaskCmdImpl
-
- com.ibm.commerce.marketing.commands.GetPromotionCodesByOrderIdTaskCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, GetPromotionCodesByOrderIdTaskCmd, 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 GetPromotionCodesByOrderIdTaskCmdImpl extends AbstractGetPromotionCodesByOrderIdTaskCmdImpl implements GetPromotionCodesByOrderIdTaskCmd
The class is used to get the promotion codes which are associated with an order.This class extends
AbstractGetPromotionCodesByOrderIdTaskCmdImpl
.This is the default implementation for
GetPromotionCodesByOrderIdTaskCmd
task command.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.commerce.marketing.commands.GetPromotionCodesByOrderIdTaskCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description GetPromotionCodesByOrderIdTaskCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]
getPromotionCodes()
This is the method to get promotion codes.void
performExecute()
This method executes the business logic of this command implementation.void
reset()
This method is called after a command has been executed.void
setOrderId(java.lang.Long orderId)
This is the method to set order id.void
setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.-
Methods inherited from class com.ibm.commerce.marketing.commands.AbstractGetPromotionCodesByOrderIdTaskCmdImpl
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
-
-
-
-
Constructor Detail
-
GetPromotionCodesByOrderIdTaskCmdImpl
public GetPromotionCodesByOrderIdTaskCmdImpl()
-
-
Method Detail
-
performExecute
public void performExecute() throws ECException
This method executes the business logic of this command implementation.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractGetPromotionCodesByOrderIdTaskCmdImpl
- Throws:
ECException
- See Also:
AbstractECTargetableCommand.performExecute()
-
getPromotionCodes
public java.lang.String[] getPromotionCodes()
Description copied from class:AbstractGetPromotionCodesByOrderIdTaskCmdImpl
This is the method to get promotion codes.- Specified by:
getPromotionCodes
in interfaceGetPromotionCodesByOrderIdTaskCmd
- Overrides:
getPromotionCodes
in classAbstractGetPromotionCodesByOrderIdTaskCmdImpl
- Returns:
- A String Array representing the promotion codes associate with order.
- See Also:
GetPromotionCodesByOrderIdTaskCmd.getPromotionCodes()
-
setOrderId
public void setOrderId(java.lang.Long orderId)
Description copied from class:AbstractGetPromotionCodesByOrderIdTaskCmdImpl
This is the method to set order id.
The order indicates which order the promotion code can get from.- Specified by:
setOrderId
in interfaceGetPromotionCodesByOrderIdTaskCmd
- Overrides:
setOrderId
in classAbstractGetPromotionCodesByOrderIdTaskCmdImpl
- Parameters:
orderId
- A Long representing the order id to be used in the command.- See Also:
GetPromotionCodesByOrderIdTaskCmd.setOrderId(java.lang.Long)
-
setPromotionCodeType
public void setPromotionCodeType(java.lang.Short promotionCodeType)
Description copied from interface:GetPromotionCodesByOrderIdTaskCmd
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 interfaceGetPromotionCodesByOrderIdTaskCmd
- Overrides:
setPromotionCodeType
in classAbstractGetPromotionCodesByOrderIdTaskCmdImpl
- Parameters:
promotionCodeType
- A Short representing the promotion code implementation type to be used in the command.- See Also:
GetPromotionCodesByOrderIdTaskCmd.setPromotionCodeType(java.lang.Short)
-
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 classAbstractECTargetableCommand
- See Also:
AbstractECTargetableCommand.reset()
-
-