com.ibm.commerce.contract.commands
Interface CopyContractCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
CopyContractCmdImpl

public interface CopyContractCmd
extends TaskCommand

Copy a specified contract to a new contract (WebSphere Commerce Business Edition only). Calling commands: ContractCopy, ContractNewVersion


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.CopyContractCmdImpl".
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.contract.commands.CopyContractCmd".
 
Method Summary
 java.lang.Long getNewContractId()
          Return id of the new contract
 void setContractId(java.lang.Long contractId)
          Set id of the contract which will be copied from
 void setContractMajorVersion(java.lang.Integer majorVersion)
          set the majorVersion of the new contract.
 void setContractMinorVersion(java.lang.Integer minorVersion)
          set the minorVersion of the new contract.
 void setContractName(java.lang.String contractName)
          set the name of the new contract.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

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.CopyContractCmdImpl".

NAME

public static final java.lang.String NAME
The name of this interface is "com.ibm.commerce.contract.commands.CopyContractCmd".
Method Detail

getNewContractId

public java.lang.Long getNewContractId()
Return id of the new contract
Returns:
java.lang.Long

setContractId

public void setContractId(java.lang.Long contractId)
Set id of the contract which will be copied from
Parameters:
contractId - java.lang.Long

setContractMajorVersion

public void setContractMajorVersion(java.lang.Integer majorVersion)
set the majorVersion of the new contract.
Parameters:
majorVersion - java.lang.Integer

setContractMinorVersion

public void setContractMinorVersion(java.lang.Integer minorVersion)
set the minorVersion of the new contract.
Parameters:
minorVersion - java.lang.Integer

setContractName

public void setContractName(java.lang.String contractName)
set the name of the new contract.
Parameters:
contractName - java.lang.Integer