com.ibm.commerce.order.commands
Class CheckOrderCopyCmdImpl
- 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.order.commands.CheckOrderCopyCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckOrderCopyCmd, 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 CheckOrderCopyCmdImpl extends TaskCommandImpl implements CheckOrderCopyCmd
Default implementation of theCheckOrderCopyCmd
task command interface.
Checks that the Order has the correct status value when write access is required.
This command uses the following AccessBean:- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM Copyright notice field.-
Fields inherited from interface com.ibm.commerce.order.commands.CheckOrderCopyCmd
defaultCommandClassName, NAME, READ_ACCESS, WRITE_ACCESS
-
-
Constructor Summary
Constructors Constructor and Description CheckOrderCopyCmdImpl()
The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
performExecute()
Executes the main business logic of the command.void
setAccessType(int anAccessType)
Sets theAccessType
to be checked.void
setOrder(OrderAccessBean aabOrder)
Sets the Order to be accessed.-
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
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
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
-
Method Detail
-
performExecute
public void performExecute() throws ECException
Executes the main business logic of the command.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
- write access was requested, but the Order status value is neitherP
norE
. The_ERR_ORDER_WRONG_STATUS
message is passed, with message parameters of the Order identifier, its status value and the status value it should have. Exception data is also passed as the following name value pairs: (errorCode
, 603), (orderId
, the identifier of the Order).ECSystemException
- an unexpected exception occurred. One of the following messages is passed:ECMessage._ERR_CREATE_EXCEPTION, ECMessage._ERR_FINDER_EXCEPTION, ECMessage._ERR_NAMING_EXCEPTION, ECMessage._ERR_REMOTE_EXCEPTION
. The String representation of the exception is passed as a message parameter.ECException
-
setAccessType
public void setAccessType(int anAccessType)
Sets theAccessType
to be checked.- Specified by:
setAccessType
in interfaceCheckOrderCopyCmd
- Parameters:
anAccessType
- one of the following values:READ_ACCESS
- read-only access to the order.WRITE_ACCESS
- write access to the order.
-
setOrder
public void setOrder(OrderAccessBean aabOrder)
Sets the Order to be accessed.- Specified by:
setOrder
in interfaceCheckOrderCopyCmd
- Parameters:
aabOrder
- the Order to be accessed.
-
-