public class ProductInventoryUpdateCmdImpl extends ControllerCommandImpl implements ProductInventoryUpdateCmd
ProductInventoryUpdate command (see interface for a detailed
description of the ProductInventoryUpdate command). This class support updating
inventory of extended site catalog entries with the request property of "extendedCatEntrySearch=true",
in addition to inventory of regular store catalog entries. By default, its search for catalog
entries will include extended site catalog entries.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
java.util.Vector |
iRequestPropertiesVector
A vector containing a request property for each update needed.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
ProductInventoryUpdateCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doPostProcess(TypedProperty aRequestProperty)
This method performs a verification check after the command executes.
|
boolean |
doPreProcess(TypedProperty aRequestProperty)
This method performs a verification check before the command executes.
|
boolean |
doProcess(TypedProperty aRequestProperty)
This method 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.
|
AccessVector |
getResources()
This method currently does nothing and always returns null.
|
boolean |
isReadyToCallExecute()
This method indicates whether the command is ready to execute.
|
boolean |
isReadyToCallExecutePerCommandInstance()
This method indicates whether each command instance is ready to be executed.
|
void |
performExecute()
This method processes each request property in the internal iRequestPropertiesVector.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the internal
iRequestPropertiesVector based on the given aRequestProperties. |
void |
setRequestPropertiesPerCommandInstance(TypedProperty aRequestProperties)
This method sets the command instance variables before processing each item in the
iRequestPropertiesVector. |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public java.util.Vector iRequestPropertiesVector
public boolean doPostProcess(TypedProperty aRequestProperty) throws ECException
doPostProcess in interface ProductInventoryUpdateCmdaRequestProperty - The request property.ECExceptionpublic boolean doPreProcess(TypedProperty aRequestProperty) throws ECException
doPreProcess in interface ProductInventoryUpdateCmdaRequestProperty - The request property.ECExceptionpublic boolean doProcess(TypedProperty aRequestProperty) throws ECException
doProcess in interface ProductInventoryUpdateCmdaRequestProperty - The request property.ECException - 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 AccCommandgetResourceOwners in class ControllerCommandImplECExceptionpublic AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECExceptionpublic boolean isReadyToCallExecute()
isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandpublic boolean isReadyToCallExecutePerCommandInstance()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - 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)
iRequestPropertiesVector based on the given aRequestProperties.setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplaRequestProperties - com.ibm.commerce.datatype.TypedPropertypublic void setRequestPropertiesPerCommandInstance(TypedProperty aRequestProperties) throws ECApplicationException
iRequestPropertiesVector.aRequestProperty - The request propertyECApplicationExceptionControllerCmd#setRequestProperties(TypedProperty)