com.ibm.commerce.contract.commands

Class ContractSubmitCheckApprovalCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.contract.commands.ContractSubmitCheckApprovalCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, ContractSubmitCheckApprovalCmd, EntryActionCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class ContractSubmitCheckApprovalCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements ContractSubmitCheckApprovalCmd
    This is the default implementation of the ContractSubmitCheckApprovalCmd task command.

    Behaviour:

      Checks whether or not a contract needs approval (WebSphere Commerce Enterprise only).Sets the event identifier to be "BeginApproval"
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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()
      Executes the business logic of this command implementation.
      void setBusinessFlowEventData(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 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • CLASSNAME

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

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

      • ContractSubmitCheckApprovalCmdImpl

        public ContractSubmitCheckApprovalCmdImpl()
    • Method Detail

      • getBusinessFlowEventData

        public 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.
        Specified by:
        getEventIdentifier in interface EntryActionCmd
        Returns:
        the event identifier for the automatic transition
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Executes the business logic of this command implementation.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        AbstractECTargetableCommand.performExecute()
      • setBusinessFlowEventData

        public void setBusinessFlowEventData(BusinessFlowEventData anBusinessFlowEventData)
        Sets the business flow event data. The BusinessFlowEventListener will use this method to pass in all the data the command needs
        Specified by:
        setBusinessFlowEventData in interface EntryActionCmd
        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
        Specified by:
        setEntityId in interface EntryActionCmd
        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.
        Specified by:
        setEntityObject in interface EntryActionCmd
        Parameters:
        anEntityObject - the entity object