com.ibm.commerce.contract.commands

Interface ContractNewVersionCmd

  • All Superinterfaces:
    com.ibm.commerce.command.AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ControllerCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.security.Protectable
    All Known Implementing Classes:
    ContractNewVersionCmdImpl


    public interface ContractNewVersionCmd
    extends com.ibm.commerce.command.ControllerCommand
    This controller command is used to create a new version of a specified contract (WebSphere Commerce Enterprise only). The state of the specified contract has to be in one of the following state: Approved, Active, Suspended, DeploymentInProgress, and DeploymentFailed. The new contract will have the same name as the specified one. If both majorVersion and minorVersion are provided, the command respects the versions. Otherwise, the new contract will have the same major version number with the old contract. The minor version will be one plus the largest minor version with the same contract name, origin, owner, majorVerion. This new contract will be in Draft version. The default implementation of this command is ContractNewVersionCmdImpl. The ContractNewVersion URL is mapped to this command by default.
    • Field Summary

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void setContractId(java.lang.Long contractId)
      Sets the ID of the contract to be copied from.
      void setNewContractMajorVersion(java.lang.Integer majorVersion)
      Sets the major version number of the new contract.
      void setNewContractMinorVersion(java.lang.Integer minorVersion)
      Sets the minor version number 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.ControllerCommand

        checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, 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, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.security.Protectable

        fulfills, getOwner
    • Field Detail

      • COPYRIGHT

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

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

      • setContractId

        void setContractId(java.lang.Long contractId)
        Sets the ID of the contract to be copied from.
        Parameters:
        contractId - the ID of the contract to be copied from
      • setNewContractMajorVersion

        void setNewContractMajorVersion(java.lang.Integer majorVersion)
        Sets the major version number of the new contract.
        Parameters:
        majorVersion - the major version number of the new contract
      • setNewContractMinorVersion

        void setNewContractMinorVersion(java.lang.Integer minorVersion)
        Sets the minor version number of the new contract.
        Parameters:
        minorVersion - the minor version number of the new contract