com.ibm.commerce.contract.commands
Interface ContractCopyCmd
- All Superinterfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable
- All Known Implementing Classes:
- ContractCopyCmdImpl
- public interface ContractCopyCmd
- extends ControllerCommand
Copies 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
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 |
setNewContractName(java.lang.String name)
Sets the name 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.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
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
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
setNewContractName
public void setNewContractName(java.lang.String name)
- Sets the name of the new contract.
-
- Parameters:
- name - the name of the new contract
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.