public class ImportDTDContractApprovedVersionCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ImportDTDContractApprovedVersionCmd
ImportDTDContractApprovedVersionCmd
task command.
ContractImportApprovedVersionCmd
.
ContractAccessBean
AccountAccessBean
UserAccessBean
OrganizationAccessBean
MemberGroupAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName
Constructor and Description |
---|
ImportDTDContractApprovedVersionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.datatype.TypedProperty |
getResponseProperties()
Returns the response properties
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setContractXML(java.io.InputStream contractXML)
Sets the contract xml instance.
|
void |
setContractXMLFileName(java.lang.String astrContractFileName)
Sets the contract XML file name.
|
void |
setIbXSDValidation(boolean ibXSDValidation)
Set the value of xsd validation, default is true.
|
void |
setStoreId(java.lang.Integer storeId)
Sets the target store ID.
|
void |
setSynchronousDeployment(boolean synchronousDeploymentFlag)
Sets the synchronousDeployment flag to indicate contract should be deployed synchronously.
|
void |
setUrl(java.lang.String astrUrl)
Sets the redirection URL to be called when the command completes successfully.
|
void |
setXMLEntityPath(java.lang.String path)
Sets the XML entity path.
|
void |
validateParameters()
This is where parameter checking is done.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public ImportDTDContractApprovedVersionCmdImpl()
public com.ibm.commerce.datatype.TypedProperty getResponseProperties()
getResponseProperties
in interface ImportDTDContractApprovedVersionCmd
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
importContract(Element, Integer)
,
importContractNLDesc(Element)
,
AbstractECTargetableCommand.performExecute()
public void setContractXML(java.io.InputStream contractXML)
setContractXML
in interface ImportDTDContractApprovedVersionCmd
contractXML
- an InputStream object contains the contract xml instancepublic void setContractXMLFileName(java.lang.String astrContractFileName)
setContractXMLFileName
in interface ImportDTDContractApprovedVersionCmd
astrContractFileName
- the name of the contract XML filepublic void setIbXSDValidation(boolean ibXSDValidation)
setIbXSDValidation
in interface ImportDTDContractApprovedVersionCmd
ibXSDValidation
- public void setStoreId(java.lang.Integer storeId)
setStoreId
in interface ImportDTDContractApprovedVersionCmd
storeId
- the store ID which the contract will deployed topublic void setSynchronousDeployment(boolean synchronousDeploymentFlag)
setSynchronousDeployment
in interface ImportDTDContractApprovedVersionCmd
synchronousDeploymentFlag
- true for synchronous deployment, false for asynchronous deploymentpublic void setUrl(java.lang.String astrUrl)
setUrl
in interface ImportDTDContractApprovedVersionCmd
astrUrl
- the redirect URL stringpublic void setXMLEntityPath(java.lang.String path)
setXMLEntityPath
in interface ImportDTDContractApprovedVersionCmd
path
- the path where it can find the DTD or XML Schema file(s)public void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- Raised with message _ERR_MISSING_CMD_PARAMETER if the targetStoreId parameter was missing from the url for an Active contract.
Raised with message _ERR_FILE_NOT_FOUND if the XML file or DTD file cannot be found.
Raised with message _ERR_PARSE_XML_FILE if an error occurred when the XML parser parses the XML file.
Raised with message _ERR_GENRIC_PARSE_XML_FILE if an IO error occurred.
Raised with message _ERR_WRONG_CONTRACT_STATE if the contract is not in Approved or Active state.
Raised with message _ERR_VERSION_NUMBER_FORMAT if the contract version number format is incorrect. It should be numerical.
Raised with message _ERR_MISSING_CONTRACT_NAME if the contract name is empty string in the XML file.
Raised with message _ERR_WRONG_ACCOUNT_OWNER_INFO if an error occurred when retrieving the account owner id.
Raised with message _ERR_ACCOUNT_DOES_NOT_EXIST if an error occurred when retrieving the account based the account name and account owner id.
Raised with message _ERR_WRONG_CONTRACT_OWNER_MEMBER_INFO if an error occurred when retrieving the contract owner id.
Raised with message _ERR_DUPLICATED_CONTRACT_NAME if there is a contract existed with the same name, owner, and origin.
Raised with message _ERR_CONTRACT_REFERENCE_NUMBER_NOT_REQUIRED if the contract referenceNumber attribute is provided in the XML file for Contract element.AbstractECTargetableCommand.validateParameters()