com.ibm.commerce.inventory.scheduled.commands
Class RAReallocateCmdImpl
- 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.inventory.scheduled.commands.RAReallocateCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, RAReallocateCmd, Protectable, 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 RAReallocateCmdImpl extends ControllerCommandImpl implements RAReallocateCmd
This is the default implementation of theRAReallocateCmd
controller command.Input parameters:
- storeId
- the store id.
Behaviour:
It is invoked by the WebSphere Commerce scheduler. This command reconciles expected inventory receipts for a given store to existing backorders to determine current expected ship dates. This is important because backorders may be deleted or expected inventory receipts may change, causing estimated ship dates to also change.This command invokes the following AccessBeans:
- StoreAccessBean
Task command called:
None.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.commerce.inventory.scheduled.commands.RAReallocateCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description RAReallocateCmdImpl()
This is the class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AccessVector
getResources()
This method returns command resources for access control.boolean
isGeneric()
This method returns false to indicate that this command can not be run by a generic user.boolean
isReadyToCallExecute()
This methods returns true to indicate that this command is ready to be executed.void
performExecute()
This method reconciles expected inventory receipts to existing backorders to determine current expected ship dates.void
reset()
This method resets instance variables.void
setRequestProperties(TypedProperty reqParms)
This method sets the request properties of this command implementation.void
validateParameters()
This method extracts and validates the input parameters of this command implementation.-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, 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, 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, isRetriable, mergeProperties, setGeneric, 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
-
-
-
-
Method Detail
-
getResources
public AccessVector getResources() throws ECException
This method returns command resources for access control.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- av Access vector is returned, instantiated using the StoreAccessBean
- Throws:
ECException.
ECException
-
isGeneric
public boolean isGeneric()
This method returns false to indicate that this command can not be run by a generic user.- Specified by:
isGeneric
in interfaceControllerCommand
- Overrides:
isGeneric
in classControllerCommandImpl
- Returns:
- false the boolean value.
-
isReadyToCallExecute
public boolean isReadyToCallExecute()
This methods returns true to indicate that this command is ready to be executed.- Specified by:
isReadyToCallExecute
in interfacecom.ibm.websphere.command.Command
- Overrides:
isReadyToCallExecute
in classAbstractECTargetableCommand
- Returns:
- true the boolean value.
-
performExecute
public void performExecute() throws ECException
This method reconciles expected inventory receipts to existing backorders to determine current expected ship dates. This is important because backorders may be deleted or expected inventory receipts may change, causing estimated ship dates to also change. This method calls stored procedureRaAllocate
.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException.
ECException
-
reset
public void reset()
This method resets instance variables.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
setRequestProperties
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
This method sets the request properties of this command implementation.- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classControllerCommandImpl
- Parameters:
reqParms
- request properties.- Throws:
ECApplicationException.
ECApplicationException
-
validateParameters
public void validateParameters() throws ECException
This method extracts and validates the input parameters of this command implementation. It validates whether getStoreID is set, if it is not it will throw exception.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException.
ECException
-
-