java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.contract.commands.TradingAgreementImportBaseCmdImpl
com.ibm.commerce.contract.commands.ContractSaveCmdImpl
Add a new contract or update an existing one which is in Draft state (WebSphere Commerce Business Edition only). This command will call one of the following TaskCommand: CreateXSDContractCmd, UpdateXSDContractCmd If it updates an existing contract, the UpdateXSDContractCmd will be called. If it adds a new contract, the CreateXSDContractCmd command will be called. The following AccessBean are used in this default implementation: ContractAccessBean, AccountAccessBean, ParticipantAccessBean.
Field Summary | |
static java.lang.String | CLASSNAME The name of this class |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.contract.commands.ContractSaveCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ContractSaveCmdImpl() |
Method Summary | |
java.lang.Integer | getContractState() Returns the contract state. |
TypedProperty | getViewInputProperties() This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method. |
boolean | isInRightStateToUpdate() Checks if the contract is in right state for updating action. |
boolean | isUpdate() Returns if the action of this command based on the information inside the xml string. |
void | performExecute() Saves the contract. |
void | setContractId(java.lang.Long contractId) Sets the contract id parameter. |
void | setContractState(java.lang.Integer contractState) Sets the contract state parameter. |
void | setCurrentContractState(java.lang.Integer curContractState) Sets the current contract state parameter. |
void | setLanguageId(java.lang.Integer langId) Sets the language id parameter. |
void | setLastUpdatedTime(java.lang.String lastUpdatedTime) Sets the last update time of the contract. |
void | setRequestProperties(TypedProperty aRequestProperties) Retrieves input parameters from the request properties. |
void | setXML(java.lang.String xmlString) Sets the input xml string. |
void | setXSDValidation(boolean bValidation) Sets the XSD validation flag. |
void | validateParameters() The method checks if the information provided in contract Element object is valid. |
Methods inherited from class com.ibm.commerce.contract.commands.TradingAgreementImportBaseCmdImpl |
getAccountId, getContractId, getDOMFromFile, getDOMFromInputStream, getElementsByTag, getXMLFlag, importContractNLDesc, importFfcNLDesc, importStoreNLDesc, saveAccount, saveContract, setXSDFlag |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
Constructor Detail |
public ContractSaveCmdImpl()
Method Detail |
public java.lang.Integer getContractState()
public TypedProperty getViewInputProperties()
public boolean isInRightStateToUpdate()
public boolean isUpdate()
public void performExecute() throws ECException
public void setContractId(java.lang.Long contractId)
public void setContractState(java.lang.Integer contractState)
public void setCurrentContractState(java.lang.Integer curContractState)
public void setLanguageId(java.lang.Integer langId)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setLastUpdatedTime(java.lang.String lastUpdatedTime)
public void setXML(java.lang.String xmlString)
public void setXSDValidation(boolean bValidation)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.