public class ContractTCSaveCmdImpl extends ControllerCommandImpl implements ContractTCSaveCmd
Name | Description |
---|---|
contractId | The contract ID. It is mandatory. |
lastUpdatedTime | the last update time string. |
xmlString | The XML string contains the terms and conditions. |
bValidation | Sets the XSD validation flag. If the flag is set to true, the XML parser will validate the XML instance against the specified XSD file. true: validate, false: do not validate. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | SYNCHRONOUS_DEPLOYMENT
The synchronous deployment parameter.
|
Constructor and Description |
---|
ContractTCSaveCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer[] | getCatalogFilterReferencedStoreIds()
This method returns the referenced store identifiers for catalog filter term condition.
|
java.lang.Integer[] | getPriceRuleReferencedStoreIds()
This method provides the Id of stores which will be affected by applying a price rule TC to a contract.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
TypedProperty | getViewInputProperties()
This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setContractId(java.lang.Long contractId)
Sets the ID of the contract to be updated.
|
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 xmlStirng)
Sets XML string of the terms and conditions to save.
|
void | setXSDValidation(boolean bValidation)
Sets the XSD validation flag.
|
protected void | validateCatalogFilterTC()
This method is used to validate whether the catalog filter term and condition is valid.
|
void | validateParameters()
Validates the contract to check if it is in right state for this process.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String SYNCHRONOUS_DEPLOYMENT
public AccessVector getResources() throws ECException
public TypedProperty getViewInputProperties()
public void performExecute() throws ECException
public void setContractId(java.lang.Long contractId)
public void setLastUpdatedTime(java.lang.String lastUpdatedTime)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setXML(java.lang.String xmlStirng)
public void setXSDValidation(boolean bValidation)
public void validateParameters() throws ECException
public java.lang.Integer[] getCatalogFilterReferencedStoreIds()
protected void validateCatalogFilterTC() throws java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, ECException, java.sql.SQLException, java.lang.NumberFormatException
public java.lang.Integer[] getPriceRuleReferencedStoreIds()