com.ibm.commerce.contract.commands

Class ContractSubmitPostApprovalCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.AccCommand, com.ibm.commerce.command.ControllerCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, ContractSubmitPostApprovalCmd, com.ibm.commerce.security.Protectable, BusinessFlowCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class ContractSubmitPostApprovalCmdImpl
    extends BusinessFlowCmdImpl
    implements ContractSubmitPostApprovalCmd
    This is the default implementation of the ContractSubmitPostApprovalCmd controller command.

    Input parameters:

    Name Description
    ContractId The ID of the contract. Mandatory.
    StateIdentifier The state identifier. Optional.
    RequestProperties The request properties.Possible values include: redirecturl, entityId, storeId, synchronousDeployment. Mandatory.

    Output parameters:

    Name Description
    ContractId The ID of the contract.
    entityId The entity ID.It is the same as the contract ID.
    EntityObject The business flow entity bean. It is the ContractFlowEntityBean.

    Behaviour:

      After a contract is approved, deploys the contract to the target store if the target store ID is provided (WebSphere Commerce Enterprise only).

    commands called:

    AccessBeans called:

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long getContractId()
      Returns the ID of the contract.
      java.lang.Long getEntityId()
      Returns the entity ID.
      BusinessFlowEntityBean getEntityObject()
      Returns business flow entity bean.
      void performExecute()
      Executes the business logic of this command implementation.
      void setContractId(java.lang.Long newContractId)
      Sets the ID of the contract.
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
      Retrieves input parameters from the request properties.
      void setStateIdentifier(java.lang.Integer stateIdentifier)
      Sets the state identifier.
      • Methods inherited from class java.lang.Object

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

        checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
      • 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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.command.ControllerCommand

        checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
      • Methods inherited from interface com.ibm.commerce.command.AccCommand

        accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.security.Protectable

        fulfills, getOwner
    • 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
      • SYNCHRONOUS_DEPLOYMENT

        public static final java.lang.String SYNCHRONOUS_DEPLOYMENT
        The synchronous deployment parameter.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ContractSubmitPostApprovalCmdImpl

        public ContractSubmitPostApprovalCmdImpl()
    • Method Detail

      • getContractId

        public java.lang.Long getContractId()
        Returns the ID of the contract.
        Returns:
        the contract ID
      • 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 - Raised with message _ERR_CONTRACT_CMD_EXEC if an error occurred when the command trys to deploy the contract.
        See Also:
        AbstractECTargetableCommand.performExecute()
      • setContractId

        public void setContractId(java.lang.Long newContractId)
        Sets the ID of the contract.
        Specified by:
        setContractId in interface ContractSubmitPostApprovalCmd
        Parameters:
        newContractId - the contract ID
      • setRequestProperties

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
                                  throws com.ibm.commerce.exception.ECApplicationException
        Retrieves input parameters from the request properties.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.command.ControllerCommand
        Overrides:
        setRequestProperties in class com.ibm.commerce.command.ControllerCommandImpl
        Parameters:
        aRequestProperties - An TypedProperty object contains the input parameters. For this default implementation, entityId is the required parameter. optional parameter is storeId.
        Throws:
        com.ibm.commerce.exception.ECApplicationException - Raised with message _ERR_MISSING_CMD_PARAMETER if one of the three required parameters are missing. Raised with message _ERR_NUMBER_FORMAT_EXCEPTION if the provided entityId, storeId cannot be converted to Long, Integer object.
        See Also:
        ControllerCommandImpl.setRequestProperties(TypedProperty)