java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.messaging.commands.ProductInventoryUpdateCmdImpl
The implementation of the ProductInventoryUpdate command (see interface for a detailed description of the ProductInventoryUpdate command)
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The internal copyright field. |
java.util.Vector |
iRequestPropertiesVector A vector containing a request property for each update needed. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.messaging.commands. ProductInventoryUpdateCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
ProductInventoryUpdateCmdImpl() |
Method Summary | |
---|---|
boolean |
doPostProcess(
TypedProperty aRequestProperty) Performs a verification check after the command executes. |
boolean |
doPreProcess(
TypedProperty aRequestProperty) Performs a verification check before the command executes. |
boolean |
doProcess(
TypedProperty aRequestProperty) Updates the product inventory based on the request properties. |
java.lang.Long[] |
getResourceOwners() This method returns the Organization unit reference numbers for all the resources accessed by this command It will return null if no resource if being accessed by this command. |
AccessVector |
getResources() Get resources. |
boolean |
isReadyToCallExecute() Indicates whether the command is ready to execute. |
boolean |
isReadyToCallExecutePerCommandInstance() Indicates whether each command instance is ready to be executed. |
void |
performExecute() Processes each request property in the iRequestPropertiesVector. |
void |
setRequestProperties(
TypedProperty aRequestProperties) Sets the iRequestPropertiesVector based on the given aRequestProperties. |
void |
setRequestPropertiesPerCommandInstance(
TypedProperty aRequestProperties) Sets the command instance variables before processing each item in the iRequestPropertiesVector. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, 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,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public java.util.Vector iRequestPropertiesVector
Constructor Detail |
---|
public ProductInventoryUpdateCmdImpl()
Method Detail |
---|
public boolean doPostProcess(TypedProperty aRequestProperty) throws ECException
doPostProcess
in interface
ProductInventoryUpdateCmd
aRequestProperty
- The request property.ECException
public boolean doPreProcess(TypedProperty aRequestProperty) throws ECException
doPreProcess
in interface
ProductInventoryUpdateCmd
aRequestProperty
- The request property.ECException
public boolean doProcess(TypedProperty aRequestProperty) throws ECException
doProcess
in interface
ProductInventoryUpdateCmd
aRequestProperty
- The request propertyECException
- Raised with message _ERR_ADM_REMOTEEXCEPTION whenever a RemoteException is
thrown Raised with message _ERR_ADM_FINDEREXCEPTION whenever a FinderException
is thrown Raised with message _ERR_ADM_NAMINGEXCEPTION whenever a
NamingException is thrown Raised with message _ERR_ADM_CREATEEXCEPTION whenever
a CreateException is thrownpublic java.lang.Long[] getResourceOwners() throws ECException
getResourceOwners
in interface
AccCommand
getResourceOwners
in class
ControllerCommandImpl
ECException
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
- The exception description.public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public boolean isReadyToCallExecutePerCommandInstance()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- Raised with _ERR_NCPARSER_PRODQTY_MSG_ERROR whenever
isReadyToCallExecutePerCommandInstance fails Raised with _ERR_DO_PRE_PROCESS
whenever doPreProcess fails Raised with _ERR_DO_PROCESS whenever doProcess
fails Raised with _ERR_DO_POST_PROCESS whenever doPostProcess
failspublic void setRequestProperties(TypedProperty aRequestProperties)
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aRequestProperties
- request propertiespublic void setRequestPropertiesPerCommandInstance(TypedProperty aRequestProperties) throws ECApplicationException
ECApplicationException
ControllerCmd#setRequestProperties(TypedProperty)