com.ibm.commerce.security.commands
Class UpdateCredentialsCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.security.commands.UpdateCredentialsCmdImpl
- All Implemented Interfaces:
- ECCommand, TaskCommand, UpdateCredentialsCmd
- public class UpdateCredentialsCmdImpl
- extends TaskCommandImpl
- implements UpdateCredentialsCmd
This command will take the input credentials and update them in either
the database, LDAP, or third party system depending on how the WCS system
was configured.
Before executing this task command the following sets should be performed:
setLogonId
setPassword
Error View Task: UpdateCredentialsCredentialsErrorView
Method Summary |
protected java.lang.String |
getLogonId()
Retrieves the logon ID under which the current user wishes to logon. |
protected java.lang.String |
getPassword()
Retrieves the password to be used for authentication with the
new logon ID. |
protected boolean |
isPasswordTemporary()
Indicates whether the password is temporary. |
void |
markPasswordTemporary()
Call this method to indicate that the updated password is temporary. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setLogonId(java.lang.String strLogonId)
Sets the logon ID of the user whose password is to be updated. |
void |
setPassword(java.lang.String strPassword)
Sets the value of the new password |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
UpdateCredentialsCmdImpl
public UpdateCredentialsCmdImpl()
getLogonId
protected java.lang.String getLogonId()
- Retrieves the logon ID under which the current user wishes to logon.
- Returns:
- The logon ID.
getPassword
protected java.lang.String getPassword()
- Retrieves the password to be used for authentication with the
new logon ID.
- Returns:
- The password.
isPasswordTemporary
protected boolean isPasswordTemporary()
- Indicates whether the password is temporary.
- Returns:
- True if password temporary.
markPasswordTemporary
public void markPasswordTemporary()
- Description copied from interface:
UpdateCredentialsCmd
- Call this method to indicate that the updated password is temporary.
- Specified by:
markPasswordTemporary
in interface UpdateCredentialsCmd
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setLogonId
public void setLogonId(java.lang.String strLogonId)
- Description copied from interface:
UpdateCredentialsCmd
- Sets the logon ID of the user whose password is to be updated.
- Specified by:
setLogonId
in interface UpdateCredentialsCmd
- Following copied from interface:
com.ibm.commerce.security.commands.UpdateCredentialsCmd
- Parameters:
strLogonID
- The login ID.
setPassword
public void setPassword(java.lang.String strPassword)
- Description copied from interface:
UpdateCredentialsCmd
- Sets the value of the new password
- Specified by:
setPassword
in interface UpdateCredentialsCmd
- Following copied from interface:
com.ibm.commerce.security.commands.UpdateCredentialsCmd
- Parameters:
strPassword
- The password.
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface:
ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous
version of the code.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-