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, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public java.util.Vector iRequestPropertiesVector
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 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 AccCommand
getResourceOwners
in class ControllerCommandImpl
ECException
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public boolean isReadyToCallExecutePerCommandInstance()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
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)
iRequestPropertiesVector
based on the given aRequestProperties.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- com.ibm.commerce.datatype.TypedPropertypublic void setRequestPropertiesPerCommandInstance(TypedProperty aRequestProperties) throws ECApplicationException
iRequestPropertiesVector
.aRequestProperty
- The request propertyECApplicationException
ControllerCmd#setRequestProperties(TypedProperty)