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
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
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 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, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

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

NAME

public static final java.lang.String NAME
The name of this interface.
See Also:
Constant Field Values

defaultCommandClassName

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

setContractId

public 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

public 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

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

Feedback