public class ContractTCCreateCmdImpl extends ControllerCommandImpl implements ContractTCCreateCmd
Name | Description |
---|---|
XMLString | The url parameter name for XML string. It is mandatory. |
contractId | The contract ID. It is mandatory. |
path | The path parameter indicates the path of the DTD or XML schema files. The default value of the path parameter is specified in WebSphere Commerce instance XML file. It is optional. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this command.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ContractTCCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element | getElement()
Returns the term condition element.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
void | parseXMLElement(org.w3c.dom.Element anTCElement)
Parses the term and condition element and gets the long description and the short description of the term and condition.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setContractId(java.lang.Long contractId)
Sets the ID of the contract which the term and condition will be added to.
|
void | setElement(org.w3c.dom.Element anElement)
Sets term and condition Element object.
|
void | setLanguageId(java.lang.Integer langId)
Sets the language ID.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void | setTcLongDescription(java.lang.String tcLongDescription)
Sets the long description of the term and condition.
|
void | setTcReferenceNumber(java.lang.Long tcId)
Sets the ID of the term and condition.
|
void | setTcReferenceNumber(java.lang.String tcIdStr)
Sets the ID of the term and condition.
|
void | setTcShortDescription(java.lang.String tcShortDescription)
Sets the short description of the term and condition.
|
void | setXMLEntityPath(java.lang.String path)
Sets the XML entity path.
|
void | validateParameters()
Checks if the contract object exists.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public org.w3c.dom.Element getElement()
public AccessVector getResources() throws ECException
public void parseXMLElement(org.w3c.dom.Element anTCElement)
public void performExecute() throws ECException
public void setContractId(java.lang.Long contractId)
public void setElement(org.w3c.dom.Element anElement)
public void setLanguageId(java.lang.Integer langId)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setTcLongDescription(java.lang.String tcLongDescription)
public void setTcReferenceNumber(java.lang.Long tcId)
public void setTcReferenceNumber(java.lang.String tcIdStr)
public void setTcShortDescription(java.lang.String tcShortDescription)
public void setXMLEntityPath(java.lang.String path)
public void validateParameters() throws ECException