com.ibm.commerce.contract.commands
Interface UpdateContractCmd

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

public interface UpdateContractCmd
extends TaskCommand

Update a contract based on the given Contract element (WebSphere Commerce Business Edition only). Calling commands: ContractSave, ContractUpdate


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.UpdateContractCmdImpl".
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.contract.commands.UpdateContractCmd".
 
Method Summary
 java.lang.Long getContractId()
          Return id of the updated contract
 void setContractElement(org.w3c.dom.Element contractElement)
          Set Contract Element
 void setContractId(java.lang.Long contractId)
          Set the id of the contract to update
 void setTermConditionId(java.lang.Long tcId)
          Set the id of the term and condition
 
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.UpdateContractCmdImpl".

NAME

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

getContractId

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

setContractElement

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

setContractId

public void setContractId(java.lang.Long contractId)
Set the id of the contract to update
Parameters:
contractId - java.lang.Long

setTermConditionId

public void setTermConditionId(java.lang.Long tcId)
Set the id of the term and condition
Parameters:
tcId - java.lang.Long