public class OrderCloseCmdImpl extends ControllerCommandImpl implements OrderCloseCmd, Protectable
Constructor and Description |
---|
OrderCloseCmdImpl()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
AccessVector | getResources()
This method returns command resources for access control by instantiating an access vector using the StoreAccessBean.
|
protected java.math.BigDecimal | getTotalAmount(OrderAccessBean anOrder)
This method gets the total amount of the given order access bean.
|
protected boolean | handleApplicationError(OrderAccessBean abOrder, java.lang.Exception exception)
This method helps you to process a specific order when the ECApplicationException is thrown.
|
boolean | isGeneric()
This method returns false to indicate that this command cannot be run by a generic user.
|
protected boolean | isQualifiedClosedorder(OrderAccessBean abOrder)
This method checks whether the order is a qualified to be processed by this scheduler command.
|
boolean | isReadyToCallExecute()
This method returns true to indicate that this command is ready to be executed.
|
void | performExecute()
This method calls the Order query to get a list of orders that are ready to be closed.
|
protected void | processOrder(OrderAccessBean anOrder)
This method processes the order.
|
void | setRequestProperties(TypedProperty reqParms)
This method sets the command request properties.
|
void | validateParameters()
This method extracts and validates the input parameters of the command implementation.
|
public AccessVector getResources() throws ECException
This command uses the following access bean:
public boolean isGeneric()
public boolean isReadyToCallExecute()
protected boolean isQualifiedClosedorder(OrderAccessBean abOrder) throws ECException
protected boolean handleApplicationError(OrderAccessBean abOrder, java.lang.Exception exception) throws ECException
public void performExecute() throws ECException
protected void processOrder(OrderAccessBean anOrder) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, ECException
protected java.math.BigDecimal getTotalAmount(OrderAccessBean anOrder) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void validateParameters() throws ECException