com.ibm.commerce.contract.commands
Class ContractSubmitCheckApprovalCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.contract.commands.ContractSubmitCheckApprovalCmdImpl
All Implemented Interfaces:
ContractSubmitCheckApprovalCmd, ECCommand, ECTargetableCommand, TaskCommand

public class ContractSubmitCheckApprovalCmdImpl
extends TaskCommandImpl
implements ContractSubmitCheckApprovalCmd

Checks whether or not a contract needs approval (WebSphere Commerce Business Edition only).

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          The name of this command.
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.contract.commands. ContractSubmitCheckApprovalCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
ContractSubmitCheckApprovalCmdImpl()
           
 
Method Summary
 com.ibm.commerce.ubf.event.BusinessFlowEventData getBusinessFlowEventData()
          Returns business flow event data.
 java.lang.Long getEntityId()
          Returns the ID of entity object
 java.lang.Object getEntityObject()
          Returns the entity object.
 java.lang.String getEventIdentifier()
          Returns the event identifier to allow the entry action to start an automatic transition.
 void performExecute()
          Sets the event identifier to be "BeginApproval"
 void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anBusinessFlowEventData)
          Sets the business flow event data.
 void setEntityId(java.lang.Long anEntityId)
          Sets the entity id.
 void setEntityObject(java.lang.Object anEntityObject)
          Sets the entity object.
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, 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

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this command.
See Also:
Constant Field Values
Constructor Detail

ContractSubmitCheckApprovalCmdImpl

public ContractSubmitCheckApprovalCmdImpl()
Method Detail

getBusinessFlowEventData

public com.ibm.commerce.ubf.event.BusinessFlowEventData getBusinessFlowEventData()
Returns business flow event data.
Returns:
the business flow event data in BusinessFlowEventDate object

getEntityId

public java.lang.Long getEntityId()
Returns the ID of entity object
Returns:
the object ID

getEntityObject

public java.lang.Object getEntityObject()
Returns the entity object.
Returns:
the business flow entity bean object

getEventIdentifier

public java.lang.String getEventIdentifier()
Returns the event identifier to allow the entry action to start an automatic transition.
Returns:
the event identifier for the automatic transition

performExecute

public void performExecute()
                    throws ECException
Sets the event identifier to be "BeginApproval"
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
AbstractECTargetableCommand.performExecute()

setBusinessFlowEventData

public void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anBusinessFlowEventData)
Sets the business flow event data. The BusinessFlowEventListener will use this method to pass in all the data the command needs
Parameters:
anBusinessFlowEventData - the business flow event data which includes all information.

setEntityId

public void setEntityId(java.lang.Long anEntityId)
Sets the entity id. This method allows the approval framework to pass an entity ID to the entry action command
Parameters:
anEntityId - the entity ID

setEntityObject

public void setEntityObject(java.lang.Object anEntityObject)
Sets the entity object. This method allows the approval framework to pass an entity object to the entry action command to avoid instantiating another instance of the entity object.
Parameters:
anEntityObject - the entity object