public class ContractImportApprovedVersionCmdImpl extends TradingAgreementImportBaseCmdImpl implements ContractImportApprovedVersionCmd
Name | Description |
---|---|
fileName | The file name of the importing xml file. It is mandatory. |
URL | The url parameter. It is mandatory. |
path | The xml entity path. It is mandatory. |
targetStoreId | The target store ID for deploying contract. It is optional. |
xsd | The flag indicates if a xml instance file is based on XSD or not. It is optional. |
validate | The flag indicates if validating an importing xml file against a xml schema. It is optional. |
synchronousDeployment | The synchronous deployment parameter. It is optional. |
contractList | The contract list file name parameter. It is optional. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The full name of this class.
|
static java.lang.String | CONTRACT_LIST
The contract list file name parameter.
|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String | SYNCHRONOUS_DEPLOYMENT
The synchronous deployment parameter.
|
Constructor and Description |
---|
ContractImportApprovedVersionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer | getContractState()
Returns the state of the new created contract.
|
java.lang.String | getUrl()
Gets the redirection URL to be called when the command completes successfully.
|
void | importContract(org.w3c.dom.Element argContractElement, java.lang.Integer contractState)
Deprecated.
Replaced by TradingAgreementImportBaseCmdImpl#saveContract(Element, trues).
|
static java.lang.String | importContract(java.lang.String fileName, java.lang.Integer storeId, CommandContext cmdCxt)
Imports a contract.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setContractListFileName(boolean isContractListFlag)
Sets the contractList flag to indicate the file is a list of contract files to import.
|
void | setContractXML(java.io.InputStream contractXML)
Sets the contract xml instance.
|
void | setContractXMLFileName(java.lang.String contractFileName)
Sets the contract xml file name.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties of this command implementation.
|
void | setRootElement(org.w3c.dom.Element rootDocElm)
Sets the root Element of the contract xml file.
|
void | setStoreId(java.lang.Integer storeId)
Sets the ID of the store which the contract will be deployed to.
|
void | setSynchronousDeployment(boolean synchronousDeploymentFlag)
Sets the synchronousDeployment flag to indicate contract should be deployed synchronously.
|
void | setUrl(java.lang.String astrUrl)
Sets the redirect url to be called when the command completes successfully.
|
void | setXMLEntityPath(java.lang.String path)
Sets the xml entity path.
|
void | setXSDFlag(boolean xsdFlag)
Sets the XSD flag to indicate the xml instance file is based on XSD or dtd.
|
void | validateParameters()
Extracts and validates the input parameters of this command implementation.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public static final java.lang.String SYNCHRONOUS_DEPLOYMENT
public static final java.lang.String CONTRACT_LIST
public ContractImportApprovedVersionCmdImpl()
public java.lang.Integer getContractState()
public java.lang.String getUrl()
public void importContract(org.w3c.dom.Element argContractElement, java.lang.Integer contractState) throws ECException
public static java.lang.String importContract(java.lang.String fileName, java.lang.Integer storeId, CommandContext cmdCxt) throws java.lang.Exception
public void performExecute() throws ECException
public void setContractXMLFileName(java.lang.String contractFileName)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setContractXML(java.io.InputStream contractXML)
public void setRootElement(org.w3c.dom.Element rootDocElm)
public void setStoreId(java.lang.Integer storeId)
public void setUrl(java.lang.String astrUrl)
public void setXMLEntityPath(java.lang.String path)
public void setXSDFlag(boolean xsdFlag)
public void setSynchronousDeployment(boolean synchronousDeploymentFlag)
public void setContractListFileName(boolean isContractListFlag)
public void validateParameters() throws ECException