com.ibm.commerce.contract.commands
Interface CreateContractCmd

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

public interface CreateContractCmd
extends TaskCommand

Create a contract based on the given Contract element (WebSphere Commerce Business Edition only). Calling commands: ContractSave, ContractCreate, ContractImportApprovedVersion, ContractImportDraftVersion.


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.CreateContractCmdImpl".
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.contract.commands.CCreateContractCmd".
 
Method Summary
 java.lang.Long getContractId()
          Return id of the new contract
 void setContractElement(org.w3c.dom.Element contractElement)
          Set Contract Element
 
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.CreateContractCmdImpl".

NAME

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

getContractId

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

setContractElement

public void setContractElement(org.w3c.dom.Element contractElement)
Set Contract Element
Parameters:
contractElement - org.w3c.dom.Element