public class UpdateCredentialsCmdImpl extends TaskCommandImpl implements UpdateCredentialsCmd
This command takes the input credentials and updates them in either the database, the LDAP server, or a third-party system. The WebSphere Commerce server configuration determines which system to update.
Before executing this task command, the methods listed below must be invoked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERRTASK_NAME
Error task name.
|
COPYRIGHT, defaultCommandClassName, NAME
Constructor and Description |
---|
UpdateCredentialsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
authenticationByDB()
This method authenticate current user through DB
|
void |
markPasswordTemporary()
Call this method to indicate that the updated password is temporary.
|
void |
performExecute()
This method executes the command by updating the security credentials in LDAP,
database, or third party authentication repository.
|
void |
setLogonId(java.lang.String strLogonId)
This method sets the logon ID of the user whose password is to be updated.
|
void |
setPassword(java.lang.String strPassword)
This method sets the value of the new password.
|
void |
setWorkingUserId(java.lang.String strWorkingUserId)
This method sets the working user ID of the user whose password is to be updated.
|
void |
validateParameters()
This method validates the parameters by ensuring that the
logonID and password are non-zero length strings.
|
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
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 ERRTASK_NAME
public void markPasswordTemporary()
markPasswordTemporary
in interface UpdateCredentialsCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface UpdateCredentialsCmd
strLogonId
- The login IDpublic void setPassword(java.lang.String strPassword)
setPassword
in interface UpdateCredentialsCmd
strPassword
- The password.public void setWorkingUserId(java.lang.String strWorkingUserId)
setWorkingUserId
in interface UpdateCredentialsCmd
strWorkingUserId
- The working user ID.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void authenticationByDB() throws ECException
ECException