|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.contract.commands.CreateContractCmdImpl
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 |
CLASSNAME
|
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.contract.commands.CreateContractCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CreateContractCmdImpl()
ContractCreateCommand constructor comment. |
Method Summary | |
java.lang.Long |
getContractId()
Return id of the new contract |
java.lang.Integer |
getContractState()
Return state of the new contract |
java.lang.String |
getContractTitle()
Return title of the new contract |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
parseXMLDocument()
parse the contract XML document |
void |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
void |
setContractDescription(java.lang.String description)
Set the description of the contract. |
void |
setContractDescriptionElement(org.w3c.dom.Element newContractDescriptionElement)
Set Contract Description Element |
void |
setContractElement(org.w3c.dom.Element contractElement)
Set Contract Element |
void |
setContractId(java.lang.Long newContractId)
Set the id of the contract. |
void |
setContractState(java.lang.String newContractState)
Set the state of the contract. |
void |
setContractTitle(java.lang.String newContractTitle)
Set the title of the contract. |
void |
setLanguageId(java.lang.Integer newLangId)
Set the language id parameter |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CreateContractCmdImpl()
Method Detail |
public java.lang.Long getContractId()
getContractId
in interface CreateContractCmd
public java.lang.Integer getContractState()
public java.lang.String getContractTitle()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECCommand
public void parseXMLDocument()
public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setContractDescription(java.lang.String description)
description
- java.lang.Stringpublic void setContractDescriptionElement(org.w3c.dom.Element newContractDescriptionElement)
newContractDescriptionElement
- org.w3c.dom.Elementpublic void setContractElement(org.w3c.dom.Element contractElement)
setContractElement
in interface CreateContractCmd
contractElement
- org.w3c.dom.Elementpublic void setContractId(java.lang.Long newContractId)
newContractId
- java.lang.Longpublic void setContractState(java.lang.String newContractState)
newContractState
- java.lang.Stringpublic void setContractTitle(java.lang.String newContractTitle)
newContractTitle
- java.lang.Stringpublic void setLanguageId(java.lang.Integer newLangId)
newLangId
- java.lang.Integerpublic void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |