com.ibm.commerce.contract.commands
Interface ContractNewVersionCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
ContractNewVersionCmdImpl

public interface ContractNewVersionCmd
extends ControllerCommand

Create a new version of a specified contract (WebSphere Commerce Business Edition 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 respect the versions. otherwise, the new contract will have the same major version number with the old contract, and 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.


Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
static java.lang.String defaultCommandClassName
          The default implementation class is "com.ibm.commerce.contract.commands.ContractNewVersionCmdImpl".
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.contract.commands.ContractNewVersionCmd".
 
Method Summary
 void setContractId(java.lang.Long contractId)
          Set the id of the contract to create a new version.
 void setNewContractMajorVersion(java.lang.Integer majorVersion)
          Set the major version number of the new contract.
 void setNewContractMinorVersion(java.lang.Integer minorVersion)
          Set the minor version number of the new contract.
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class is "com.ibm.commerce.contract.commands.ContractNewVersionCmdImpl".

NAME

public static final java.lang.String NAME
The name of this interface is "com.ibm.commerce.contract.commands.ContractNewVersionCmd".
Method Detail

setContractId

public void setContractId(java.lang.Long contractId)
Set the id of the contract to create a new version.
Parameters:
contractId - java.lang.Long

setNewContractMajorVersion

public void setNewContractMajorVersion(java.lang.Integer majorVersion)
Set the major version number of the new contract.
Parameters:
majorVersion - java.lang.Integer

setNewContractMinorVersion

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