com.ibm.commerce.ordermanagement.util
Class ExtendBlockingConditionsCmdImpl
- 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.ordermanagement.util.ExtendBlockingConditionsCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ExtendBlockingConditionsCmd, 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 ExtendBlockingConditionsCmdImpl extends ControllerCommandImpl implements ExtendBlockingConditionsCmd
This is the default implementation of theExtendBlockingConditionsCmd
controller command.Input parameters:
Name Description iorderDataBean
The order data bean that provides the details of the Order. Mandatory. Behaviour:
This controller command provides a point of extensibility for adding order blocking conditions to order process. The results of the blocking tests need to be conveyed back in a result object along with all the reason codes for the blocks.
Before this command is executed, the OrderDataBean must be set and available for use.- See Also:
ExtendBlockingResultObject
,OrderDataBean
, Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.commerce.ordermanagement.util.ExtendBlockingConditionsCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description ExtendBlockingConditionsCmdImpl()
Constructor for the implementation class, used by the factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description com.ibm.commerce.ordermanagement.util.ExtendBlockingResultObject
getExtendBlockingResult()
Returns the result object.void
performExecute()
Main method for setting up blocking conditions.void
setOrderDetails(OrderDataBean orderDataBean)
Sets the order data bean.void
validateParameters()
Validates required parameters for this command.-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, 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, getResources, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Constructor Detail
-
ExtendBlockingConditionsCmdImpl
public ExtendBlockingConditionsCmdImpl()
Constructor for the implementation class, used by the factory. No data initializations are done here.
-
-
Method Detail
-
getExtendBlockingResult
public com.ibm.commerce.ordermanagement.util.ExtendBlockingResultObject getExtendBlockingResult()
Returns the result object.- Specified by:
getExtendBlockingResult
in interfaceExtendBlockingConditionsCmd
- Returns:
- ExtendBlockingResultObject The result object
- See Also:
ExtendBlockingResultObject
-
setOrderDetails
public void setOrderDetails(OrderDataBean orderDataBean)
Sets the order data bean. This is mandatory for the successful execution of this command.- Specified by:
setOrderDetails
in interfaceExtendBlockingConditionsCmd
- Parameters:
orderDataBean
- The order data bean that provides the details of the Order
-
performExecute
public void performExecute() throws ECException
Main method for setting up blocking conditions. Multiple tests can be executed here, and the result object should be created and populated here.
- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- Remote, Create, Finder, Naming exceptions are converted to ECApplicationException
-
validateParameters
public void validateParameters() throws ECException
Validates required parameters for this command.
- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
- Thrown if orderDataBean is not set.
-
-