com.ibm.commerce.contract.commands
Interface ContractCopyCmd
- All Superinterfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable
- All Known Implementing Classes:
- ContractCopyCmdImpl
- public interface ContractCopyCmd
- extends ControllerCommand
Copy a contract (WebSphere Commerce Business Edition only).
If the command completes successfully, a new contract will be create and the contract will be in Draft
state with majorVersion set to 1 and minorVersion set to 0
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.ContractCopyCmdImpl". |
static java.lang.String |
NAME
The name of this interface is "com.ibm.commerce.contract.commands.ContractCopyCmd". |
Method Summary |
void |
setContractId(java.lang.Long contractId)
Set the id of the contract to copy. |
void |
setNewContractName(java.lang.String name)
Set the name 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.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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.ContractCopyCmdImpl".
NAME
public static final java.lang.String NAME
- The name of this interface is "com.ibm.commerce.contract.commands.ContractCopyCmd".
setContractId
public void setContractId(java.lang.Long contractId)
- Set the id of the contract to copy.
- Parameters:
contractId
- java.lang.Long
setNewContractName
public void setNewContractName(java.lang.String name)
- Set the name of the new contract.
- Parameters:
name
- java.lang.String