public class GetOrderCmdImpl extends AbstractGetBusinessObjectDocumentCmdImpl implements GetOrderCmd
Constructor and Description |
---|
GetOrderCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected GetOrderType | getGetOrder()
This method returns the GetOrder.
|
protected OrderFactory | getOrderFactory()
This method will return the default instance of the Order Factory.
|
BusinessObjectDocumentType | getResultBusinessObjectDocument()
This method returns the response business object document that represents the result of executing the request.
|
ShowOrderType | getShowOrder()
This method gets the result (ShowOrderType BOD).
|
protected void | performExpression()
This method performs the Get request by delegating to the defined fetch command implementation to execute the search expression.
|
void | reset()
Resets the instance.
|
void | setGetOrder(GetOrderType argGetOrder)
This methods set the GetOrder.
|
void | setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
This method sets the request business object document of the business logic to execute.
|
protected void | setShowOrder(ShowOrderType aShowOrder)
This method sets the (ShowOrderType BOD).
|
protected void | validateExpression()
This method parses the Get verb from the Get business object document and creates the appropriate SearchExpression object.
|
protected void performExpression() throws java.lang.Exception
This method performs the Get request by delegating to the defined fetch command implementation to execute the search expression. Optionally if the insert more data command interface is defined and a insert more data command implementation is found for the specified access profile, the command is executed to add more data. The purpose of the fetch command is to return the Show response and the initial list of nouns based on the contained by the component. The insert more data command is used to perform additional business logic computation or querying external system to add additional data that cannot be resolved by the fetch command and is specific to a particular access profile.
Before the insert more data command is invoked, the filterNouns() method will be invoke to remove any noun the current user cannot read. The purpose of the filter is to ensure only authorized nouns are returned by the service.
The insert more command can be registered using the .index notation in order to register more then one insert more command per access profile. For example, com.ibm.commerce.catalog.facade.server.commands.InsertMoreCatalogEntryCmd+AccessProfile.0 can be used to register one insert more command for a particular access profile and another can be registered using com.ibm.commerce.catalog.facade.server.commands.InsertMoreCatalogEntryCmd+AccessProfile.1. Because the data to include in the response could come from many different data sources and insert more implementations can be reused for different access profiles, this .index notation allows the reuse of commands. If not using the .index notation, then only one insert more command can be used for a particular access profile. To support using many insert more commands for a particular access profile, the .index notation is used to register the many insert more commands to execute and the order they should execute in. The index starts at 0 and for each command the index is incremented by one and will stop as soon no insert command is found for that index. In the case where the index is defined for 0, 1 and 3 the insert more command with index of 3 will not execute because nothing was found for index 2.
After the insert more data command is the buildShowBusinessObjectDocument() is invoked passing the Show verb and list of nouns that has been returned by the fetch command. The insert more data command is given this list of nouns to add more data and perform any additional modification on the list.
protected void validateExpression() throws java.lang.Exception
public void setGetOrder(GetOrderType argGetOrder)
protected GetOrderType getGetOrder()
public ShowOrderType getShowOrder()
protected void setShowOrder(ShowOrderType aShowOrder)
public BusinessObjectDocumentType getResultBusinessObjectDocument()
public void setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
public void reset()
protected OrderFactory getOrderFactory()