java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.tools.optools.user.commands.CSRCustomerEnableAccountCmdImpl
Enables a customer's account by calling UserRegistrationAdminUpdateCmd.
URL calling syntax:
Parameters:
<?xml version="1.0" encoding "UTF-8"> <profileInfo> <logonId>Smith</logonId> </profileInfo> <customerId>7777</customerId> <locale>en_US</locale> <account>ABC</account> <cmdStatus>1</cmdStatus> </xml>
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT copyright notice |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.optools.user.commands. CSRCustomerEnableAccountCmd |
defaultCommandClassName |
Fields inherited from interface com.ibm.commerce.tools.command. ToolsControllerCommand |
NAME |
Constructor Summary | |
---|---|
CSRCustomerEnableAccountCmdImpl() Default Constructor |
Method Summary | |
---|---|
protected
void |
exceptionUtil(
TypedProperty prop, java.lang.Exception ex, java.lang.String methodName,
java.lang.String cmdName, java.lang.String errMsg) Generates common exception code. |
void |
executeUserRegistrationAdminUpdate() Calls UserRegistrationAdminUpdateCmd to enable the user's account |
java.lang.String |
getAccount() Returns the customer's account. |
java.lang.String |
getCmdStatus() Returns the customer's account status. |
java.lang.String |
getCustomerId() Returns the customer's id. |
java.lang.String |
getLocale() Returns the customer's locale. |
java.lang.String |
getLogonId() Returns the customer's logon id. |
java.util.Hashtable |
getNLS() Returns the properties containing all translatable messages for this command. |
TypedProperty |
getViewInputProperties() This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method. |
java.lang.String |
getXMLFile() Returns the XML file. |
void |
performExecute() Performs the execution for enabling a customer's account status. |
void |
setNLS(java.util.Hashtable newNLS) Sets the NLS hashtable. |
void |
validateParameters() Gets XMLObject from the GUI Dialog and gets ready to parse it. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
setRequestProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public CSRCustomerEnableAccountCmdImpl()
Method Detail |
---|
protected void exceptionUtil(TypedProperty prop, java.lang.Exception ex, java.lang.String methodName, java.lang.String cmdName, java.lang.String errMsg) throws ECApplicationException
prop
- The response typed property.ex
- The catched exception.methodName
- The method that generates the exceptioncmdName
- The command that generates the exceptionerrMsg
- The error message.
ECApplicationException
- If there were problems composing the
exception.public void executeUserRegistrationAdminUpdate() throws java.lang.Exception
ECApplicationException
- If the UserRegistrationAdminUpdateCmd
command cannot be found.java.lang.Exception
public java.lang.String getAccount()
public java.lang.String getCmdStatus()
public java.lang.String getCustomerId()
public java.lang.String getLocale()
public java.lang.String getLogonId()
public java.util.Hashtable getNLS()
public TypedProperty getViewInputProperties()
getViewInputProperties
in interface
ControllerCommand
getViewInputProperties
in class
ToolsControllerCommandImpl
public java.lang.String getXMLFile()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- If The account can not be enabled.public void setNLS(java.util.Hashtable newNLS)
newNLS
- The translated name-value
messages.public void validateParameters() throws ECApplicationException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the XML does not contain the required
parameters