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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public void setContractId(java.lang.Long contractId)
contractId
- the ID of the contract to be copied
frompublic void setNewContractMajorVersion(java.lang.Integer majorVersion)
majorVersion
- the major version number of the new
contractpublic void setNewContractMinorVersion(java.lang.Integer minorVersion)