com.ibm.commerce.quote.commands
Class QuoteDisplayCmdImpl
- 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.quote.commands.QuoteBaseCmdImpl
-
- com.ibm.commerce.quote.commands.QuoteDisplayCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, QuoteDisplayCmd, 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 QuoteDisplayCmdImpl extends com.ibm.commerce.quote.commands.QuoteBaseCmdImpl implements QuoteDisplayCmd
This is the default implementation of theQuoteDisplayCmd
controller Command.Behaviour
- Calls the
QuotePrepareCmd
for any quote that is unlocked. - Adds the list of quotes to be displayed to the response.
- Uses the
OrderAccessBean
to process the quotes.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.quote.commands.QuoteDisplayCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description QuoteDisplayCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.ArrayList
getUnlockedQuotes()
Gets the unlocked quote access beans to prepare.void
performExecute()
Performs the main business logic.void
setQuote(OrderAccessBean abQuote)
Sets the quote to be displayed and adds it to the list of quotes to be processed.void
setUnlockedQuotes(java.util.ArrayList newQuotes)
Sets the unlocked quote access beans to prepare.-
Methods inherited from class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
getCommit, getResources, getUrl, reset, setCommit, setRequestProperties, setUrl, validateParameters
-
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, 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, isReadyToCallExecute, 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.quote.commands.QuoteDisplayCmd
setUrl
-
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, validateParameters
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Method Detail
-
setQuote
public void setQuote(OrderAccessBean abQuote)
Sets the quote to be displayed and adds it to the list of quotes to be processed.- Specified by:
setQuote
in interfaceQuoteDisplayCmd
- Parameters:
abQuote
- Quote access bean.
-
getUnlockedQuotes
public java.util.ArrayList getUnlockedQuotes()
Gets the unlocked quote access beans to prepare.- Returns:
- List of Quotes access beans
-
setUnlockedQuotes
public void setUnlockedQuotes(java.util.ArrayList newQuotes)
Sets the unlocked quote access beans to prepare.- Parameters:
newQuotes
- Quote AccessBeans
-
performExecute
public void performExecute() throws ECException
Performs the main business logic. First retrieves the set of unlocked quotes from the specified list. Then invokes QuotePrepare on this set of unlocked quotes. Adds all the specified Ids of the quotes to the response.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Specified by:
performExecute
in classcom.ibm.commerce.quote.commands.QuoteBaseCmdImpl
- Throws:
ECException
-
-