com.ibm.commerce.order.commands
Class OrderProcessApprovalBaseCmdImpl

java.lang.Object
  |
  +--BusinessFlowCmdImpl
        |
        +--com.ibm.commerce.order.commands.OrderProcessApprovalBaseCmdImpl
Direct Known Subclasses:
OrderProcessPostApprovalCmdImpl, OrderProcessPostCancelCmdImpl, OrderProcessPostRejectCmdImpl, OrderProcessPreApprovalCmdImpl

public class OrderProcessApprovalBaseCmdImpl
extends BusinessFlowCmdImpl

This the base class for other OrderProcess approval commands.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Constructor Summary
OrderProcessApprovalBaseCmdImpl()
           
 
Method Summary
 java.lang.Long getEntityId()
          Get the Id of an object after the object is created by a command for the first time.
 BusinessFlowEntityBean getEntityObject()
          Get the entity object from command if this is a new process.
  AccessVector getResources()
          Gets the resources.
protected  void mergeNVPs( TypedProperty hshFrom, TypedProperty hshTo)
          This is a helper method that merges new nvps (hshFrom) with old nvps (hshTo) if value of a new nvp is null or empty string remove nvp with this name from an old set (hshTo).
 void performExecute()
          It does nothing.
 void reset()
          Resets all instance variables.
protected  void setOrderFlowEntityBean( OrderFlowEntityBean entityBean)
          Set the order flow entity bean object.
 void setRequestProperties( TypedProperty reqProperties)
          Sets the request properties.
 void setStateIdentifier(java.lang.Integer aStateIdentifier)
          UBF informs the command the state of the entity.
 void validateParameters()
          Validates the parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

OrderProcessApprovalBaseCmdImpl

public OrderProcessApprovalBaseCmdImpl()
Method Detail

getEntityId

public java.lang.Long getEntityId()
Get the Id of an object after the object is created by a command for the first time.
Returns:
The Id of an object.

getEntityObject

public BusinessFlowEntityBean getEntityObject()
Get the entity object from command if this is a new process. This will improve performance of the system.
Returns:
The business flow entity bean object.

getResources

public AccessVector getResources()
                          throws ECException
Gets the resources.
Returns:
resource access bean.
Throws:
ECException.
ECException

mergeNVPs

protected void mergeNVPs(TypedProperty hshFrom,
TypedProperty hshTo)
                  throws ParameterNotFoundException,
InvalidParameterValueException
This is a helper method that merges new nvps (hshFrom) with old nvps (hshTo) if value of a new nvp is null or empty string remove nvp with this name from an old set (hshTo).
Parameters:
hshFrom - typed properties.
hshTo - typed properties.
Throws:
InvalidParameterValueException
ParameterNotFoundException

performExecute

public void performExecute()
                    throws ECException
It does nothing. It may be overwritten by the sub classes.
Throws:
ECException

reset

public void reset()
Resets all instance variables.

setOrderFlowEntityBean

protected void setOrderFlowEntityBean(OrderFlowEntityBean entityBean)
Set the order flow entity bean object.
Parameters:
entityBean - the order flow entity bean object.

setRequestProperties

public void setRequestProperties(TypedProperty reqProperties)
                          throws ECException
Sets the request properties.
Parameters:
reqProperties - request properties.
Throws:
ECException

setStateIdentifier

public void setStateIdentifier(java.lang.Integer aStateIdentifier)
UBF informs the command the state of the entity.
Parameters:
aStateIdentifier - The state identifier.

validateParameters

public void validateParameters()
                        throws ECException
Validates the parameters
Throws:
ECException