public abstract class AbstractActionBusinessObjectDocumentCmdImpl extends com.ibm.commerce.command.MeasuredCacheableCommandImpl implements BusinessObjectDocumentCmd
An abstract implementation of a command that represents the any verb that contains actions when dealing with business object documents. This abstract class provides the structure and object hierarchy to follow when creating a command to represent the action based verb. Any command implementation that represents action enabled verb of a business object document should extend from this abstract implementation.
Modifier and Type | Method and Description |
---|---|
BusinessObjectDocumentType |
getResultBusinessObjectDocument()
This method returns the response business object document that represents
the result of executing the request.
|
java.util.Collection |
getUniqueID()
This method returns a collection of unique IDs of the nouns involved with this change
request.
|
java.lang.String |
getUniqueIDXPath()
This method returns the XPath expression from the noun to use to retrieve the unique ID of the noun.
|
void |
handleException(java.lang.Exception exception)
This method sets the exception as the result of executing the request.
|
boolean |
isReadyToCallExecute()
This method always indicates the command is ready to execute.
|
void |
performExecute()
This method will execute the change command by calling
validateAction
and performAction . |
void |
setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
This method sets the request business object document of the business
logic to execute.
|
void |
setUniqueIDXPath(java.lang.String uniqueIDXPath)
This method sets the XPath expression from the noun to use to retrieve the unique ID of the noun.
|
executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
public BusinessObjectDocumentType getResultBusinessObjectDocument()
getResultBusinessObjectDocument
in interface BusinessObjectDocumentCmd
public void setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
setRequestBusinessObjectDocument
in interface BusinessObjectDocumentCmd
businessObjectDocument
- The request business object document.public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class com.ibm.websphere.command.TargetableCommandImpl
Command.isReadyToCallExecute()
public final void performExecute() throws java.lang.Exception
validateAction
and performAction
. This method controls the steps required
when executing the change verb.performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
- Can occur if the validation of the business object document
fails or a problem occur when performing the action.TargetableCommand.performExecute()
public void handleException(java.lang.Exception exception)
getResultBusinessObjectDocument()
will still be used to return the
result, this call out will indicate that exception information is required to be
populated.handleException
in interface BusinessObjectDocumentCmd
exception
- The application exception that occurred when executing the
business object document.public java.util.Collection getUniqueID()
This method returns a collection of unique IDs of the nouns involved with this change request. This list of unique IDs is to indicate which nouns have been involved with the request and requires to be invalidated. An example of defining the invalidation configuration is as follows.
<invalidation>catalog <component id="getUniqueID" type="method" multipleIDs="true"> <required>true</required> </component> </invalidation>
public void setUniqueIDXPath(java.lang.String uniqueIDXPath)
uniqueIDXPath
- The XPath expression to get the uniqueID of the noun.public java.lang.String getUniqueIDXPath()