com.ibm.commerce.tools.optools.order.commands
Class CSROrderItemSplitCmdImpl
- 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.ControllerCommandImpl
-
- com.ibm.commerce.tools.command.ToolsControllerCommandImpl
-
- com.ibm.commerce.tools.optools.order.commands.CSROrderItemSplitCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand, CSROrderItemSplitCmd, 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 CSROrderItemSplitCmdImpl extends ToolsControllerCommandImpl implements CSROrderItemSplitCmd
This is the default implementation of theCSROrderItemSplitCmd
command.This command calls the following Commands:
This command uses the following AccessBeans:
OrderAccessBean
OrderItemAccessBean
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.static java.lang.String
ERRTASK_NAME
Error handling view name for this command.-
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands.CSROrderItemSplitCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description CSROrderItemSplitCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
executeCSROrderStatusChange(java.lang.String theOrderId, java.lang.String newStatus)
CallsCSROrderStatusChangeCmd
command to change the status of the order and its order items.java.lang.String
getCustomerId()
Returns customer ID.java.lang.String
getFromOrderId()
Returns the ID of the order which the order items are moved from.java.lang.String
getNewOrderId()
Returns the ID of the newly created order.java.util.Hashtable
getNLS()
Returns NLS properties.java.util.Vector
getOrderItems()
Returns a vector of order items to be moved.CommandContext
getOrgCmdContext()
Returns original command context.java.lang.Integer
getOrgLangId()
Returns original language ID.java.util.Locale
getOrgLocale()
Returns original locale.TypedProperty
getOrgReqProperties()
Returns original request properties.java.lang.String
getRedirectURL()
Returns redirect URL.AccessVector
getResources()
Gets the access vector accessed by this command.java.lang.String
getToOrderId()
Returns ID of the order which the order items will be moved to.void
performExecute()
This method performs the execution of moving the order items from one order to another order.void
validateParameters()
Sets the NLS properties and parse the input XML parameters.-
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties, setRequestProperties
-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, 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.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
-
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
ERRTASK_NAME
public static java.lang.String ERRTASK_NAME
Error handling view name for this command.
-
-
Method Detail
-
executeCSROrderStatusChange
public void executeCSROrderStatusChange(java.lang.String theOrderId, java.lang.String newStatus) throws ECException
CallsCSROrderStatusChangeCmd
command to change the status of the order and its order items.- Parameters:
newStatus
- The status of the order and its order items.theOrderId
- The ID of the order.- Throws:
ECException
- if unable to change status of the order and its items.
-
getCustomerId
public java.lang.String getCustomerId()
Returns customer ID.- Returns:
- The customer ID.
-
getFromOrderId
public java.lang.String getFromOrderId()
Returns the ID of the order which the order items are moved from.- Returns:
- The ID of the order which the order items are moved from.
-
getNewOrderId
public java.lang.String getNewOrderId()
Returns the ID of the newly created order.- Returns:
- The ID of the newly created order.
-
getNLS
public java.util.Hashtable getNLS()
Returns NLS properties.- Returns:
- The NLS properties.
-
getOrderItems
public java.util.Vector getOrderItems()
Returns a vector of order items to be moved.- Returns:
- The order items to be moved.
-
getOrgCmdContext
public CommandContext getOrgCmdContext()
Returns original command context.- Returns:
- The command context.
-
getOrgLangId
public java.lang.Integer getOrgLangId()
Returns original language ID.- Returns:
- The original language ID.
-
getOrgLocale
public java.util.Locale getOrgLocale()
Returns original locale.- Returns:
- The original locale.
-
getOrgReqProperties
public TypedProperty getOrgReqProperties()
Returns original request properties.- Returns:
- The original request properties.
-
getRedirectURL
public java.lang.String getRedirectURL()
Returns redirect URL.- Returns:
- The redirect URL.
-
getResources
public AccessVector getResources() throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- The vector of resource action pairs
- Throws:
ECException
- If the resource can not be retrieved.
-
getToOrderId
public java.lang.String getToOrderId()
Returns ID of the order which the order items will be moved to.- Returns:
- The ID of the order which the order items will be moved to.
-
performExecute
public void performExecute() throws ECException
This method performs the execution of moving the order items from one order to another order.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- if unable to move items from one order to the other.
-
validateParameters
public void validateParameters() throws ECApplicationException
Sets the NLS properties and parse the input XML parameters. This method also initializes following parameters:- redirectURL
- fromOrderId
- toOrderId
- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
- If the required parameters are not contained.
-
-