com.ibm.commerce.contract.commands

Interface CopyContractCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.TaskCommand
    All Known Implementing Classes:
    CopyContractCmdImpl


    public interface CopyContractCmd
    extends com.ibm.commerce.command.TaskCommand
    This contract task command is used to Copy a specified contract to a new contract (WebSphere Commerce Enterprise only). The default implementation of this command is CopyContractCmdImpl. The CopyContract URL is mapped to this command by default.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String defaultCommandClassName
      The name of the default implementation class.
      static java.lang.String NAME
      The name of this interface.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Long getNewContractId()
      Returns ID of the new contract.
      void setAccountId(java.lang.Long accountId)
      Sets the ID of the account to which the contract will be copied.
      void setContractId(java.lang.Long contractId)
      Sets ID of the contract which will be copied from.
      void setContractMajorVersion(java.lang.Integer majorVersion)
      Sets the major version of the new contract.
      void setContractMinorVersion(java.lang.Integer minorVersion)
      Sets the minor version of the new contract.
      void setContractName(java.lang.String contractName)
      Sets the name of the new contract.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 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, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        The name of the default implementation class.
        See Also:
        Constant Field Values
    • Method Detail

      • getNewContractId

        java.lang.Long getNewContractId()
        Returns ID of the new contract.
        Returns:
        The ID of the new contract
      • setAccountId

        void setAccountId(java.lang.Long accountId)
        Sets the ID of the account to which the contract will be copied.
        Parameters:
        accountId - the ID of the account
      • setContractId

        void setContractId(java.lang.Long contractId)
        Sets ID of the contract which will be copied from.
        Parameters:
        contractId - the ID of the original contract
      • setContractMajorVersion

        void setContractMajorVersion(java.lang.Integer majorVersion)
        Sets the major version of the new contract.
        Parameters:
        majorVersion - the major version of the new contract
      • setContractMinorVersion

        void setContractMinorVersion(java.lang.Integer minorVersion)
        Sets the minor version of the new contract.
        Parameters:
        minorVersion - the minor version of the new contract
      • setContractName

        void setContractName(java.lang.String contractName)
        Sets the name of the new contract.
        Parameters:
        contractName - the name of the new contract