public class AccountImportCmdImpl extends TradingAgreementImportBaseCmdImpl implements AccountImportCmd
AccountImportCmd controller command.
| Name | Description |
|---|---|
xsd |
xsd flag to indicate if an xml instance file based on XSD or not. It is optional. |
fileName |
The file name of the importing xml file. It is mandatory. |
storeId |
The store ID. It is mandatory. |
path |
xml entity path. It is mandatory. |
validate |
validate flag to indicate if validation a importing xml file against an xml schema.It is optional. |
SaveAccountCmd task command to save account.
CreateAccountCmd task command to create a new account.
AccountAccessBean
StoreEntityAccessBean
UserAccessBean
OrganizationAccessBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
AccountImportCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setAccountXMLFileName(java.lang.String accountXMLFileName)
Sets the name of the account XML file.
|
void |
setRequestProperties(com.ibm.commerce.datatype.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 anStoreId)
Sets the storeId.
|
void |
setValidationFlag(boolean validationFlag)
Sets the validation flag to indicate if XML file will be validated by XML parser against the XSD.
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public com.ibm.commerce.accesscontrol.AccessVector getResources()
throws com.ibm.commerce.exception.ECException
getResources in interface com.ibm.commerce.command.ECCommandgetResources in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECExceptionAbstractECTargetableCommand.getResources()public void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECExceptionAbstractECTargetableCommand.performExecute()public void setAccountXMLFileName(java.lang.String accountXMLFileName)
setAccountXMLFileName in interface AccountImportCmdaccountXMLFileName - the name of the acocunt XML filepublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties in interface com.ibm.commerce.command.ControllerCommandsetRequestProperties in class com.ibm.commerce.command.ControllerCommandImplaRequestProperties - An TypedProperty object contains the input parameters.com.ibm.commerce.exception.ECApplicationException - Raised with message _ERR_MISSING_CMD_PARAMETER when the input XML file name and store id is missed.public void setRootElement(org.w3c.dom.Element rootDocElm)
setRootElement in interface AccountImportCmdrootDocElm - the document Element object of the contract XMLpublic void setStoreId(java.lang.Integer anStoreId)
setStoreId in interface AccountImportCmdanStoreId - the ID of a storepublic void setValidationFlag(boolean validationFlag)
setValidationFlag in interface AccountImportCmdvalidationFlag - boolean - validation flag, true: validate the XML instance file against the XSD, false: notpublic void setXMLEntityPath(java.lang.String path)
setXMLEntityPath in interface AccountImportCmdpath - the path where it can find the DTD or XML Schema filespublic void setXSDFlag(boolean xsdFlag)
setXSDFlag in interface AccountImportCmdsetXSDFlag in class TradingAgreementImportBaseCmdImplxsdFlag - XSD flag, true for XSD, false for DTDpublic void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - Raised with message _ERR_DUPLICATED_ACCOUNT_NAME if the account name is duplicated during creating.
Raised with message _ERR_ACCOUNT_REFERENCE_NUMBER_NOT_REQUIRED if the account ID is provided during creating.
Raised with message _ERR_FILE_NOT_FOUND if the XML file or DTD/XSD 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.AbstractECTargetableCommand.validateParameters()