public class CSRCustomerEnableAccountCmdImpl extends ToolsControllerCommandImpl implements CSRCustomerEnableAccountCmd
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>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
copyright notice
|
defaultCommandClassName
NAME
Constructor and Description |
---|
CSRCustomerEnableAccountCmdImpl()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public CSRCustomerEnableAccountCmdImpl()
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 interface com.ibm.websphere.command.TargetableCommand
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