public interface CopyContractCmd
extends com.ibm.commerce.command.TaskCommand
CopyContractCmdImpl
. The CopyContract
URL is
mapped to this command by default.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.
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
static final java.lang.String NAME
java.lang.Long getNewContractId()
void setAccountId(java.lang.Long accountId)
accountId
- the ID of the accountvoid setContractId(java.lang.Long contractId)
contractId
- the ID of the original contractvoid setContractMajorVersion(java.lang.Integer majorVersion)
majorVersion
- the major version of the new contractvoid setContractMinorVersion(java.lang.Integer minorVersion)
minorVersion
- the minor version of the new contractvoid setContractName(java.lang.String contractName)
contractName
- the name of the new contract