public class LogonCmdImpl extends ControllerCommandImpl implements LogonCmd
This controller command logs users into the system. If the user is logging in from a guest shopper identity, then it also migrates the guest shopper resources to the new user login identity.
Before executing this task command, the methods listed below must be invoked.
Upon successful authentication the user is redirected to the URL specified by the setPostLogonURL. Upon unsuccessful authentication the user is redirected to the URL specified by setReLogonURL.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
Copyright field.
|
static java.lang.String |
ERRTASK_NAME
Error task name.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
LogonCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthenticateUserId()
This method retrieves the user ID/i> of the logged in user.
|
boolean |
isGeneric()
This method determines if a generic user is permitted to execute this command.
|
static boolean |
isPasswordInvalidationEnabled()
Deprecated.
in 7009 due to introduction of LDAP user exclusion feature where some users can be excluded from LDAP
and only exist in the database.
|
void |
performExecute()
This is the main business logic of the command.
|
void |
setIbmId(java.lang.String ibmId)
This method sets the IBM id.
|
void |
setLinkUserToIBMid(boolean iLinkUserToIBMid)
This method sets the parameter linkUserToIBMid.
|
void |
setLogonId(java.lang.String strLogonId)
This method sets the logon ID.
|
void |
setLogonPassword(java.lang.String strPassword)
This method sets the logon password.
|
void |
setPostLogonURL(java.lang.String strPostLoginURL)
This method sets the post logon URL.
|
void |
setReLogonURL(java.lang.String strReLoginURL)
This method sets the relogon URL.
|
void |
setRequestProperties(TypedProperty hshReqParameters)
This method sets the request properties.
|
void |
updateLockoutInformation(boolean valid_credentials)
This method updates the lockout information.
|
void |
validateParameters()
This method validates the parameters by ensuring that reLogonURL and
postLogonURL are specified.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public static final boolean isPasswordInvalidationEnabled()
public java.lang.String getAuthenticateUserId()
getAuthenticateUserId in interface LogonCmdpublic boolean isGeneric()
isGeneric in interface ControllerCommandisGeneric in class ControllerCommandImplpublic void performExecute()
throws ECException
MemberRegistrationAttributes.xml are assigned to the user. Also,
postLDAPAuthenticationProcessing() is called to allow for further processing
in this case. AccountLockoutPolicyCmd task commad is called to update policy account
information for the user:
USERREG.PASSWORDRETRIES is incremented on an bad password attempt.
USERREG.STATUS will be changed to 0.
USERREG.PASSWORDEXPIRED will be changed to 1.
ChangePassword
view.
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - This exception is thrown mainly if a system exception occurred. Normally if an
input parameter is missing or invalid, an exception would not be thrown. Instead, the response would
contain an error code and redirect to the URL specified by reLogonURL.public void setLogonId(java.lang.String strLogonId)
setLogonId in interface LogonCmdstrLogonId - The logon ID to use when logging on to the store.public void setLogonPassword(java.lang.String strPassword)
setLogonPassword in interface LogonCmdstrPassword - The password to use when logging on to the store.public void setPostLogonURL(java.lang.String strPostLoginURL)
setPostLogonURL in interface LogonCmdstrPostLoginURL - The URL to redirect to after a successful logon.public void setReLogonURL(java.lang.String strReLoginURL)
setReLogonURL in interface LogonCmdstrReLoginURL - The URL to redirect to if logon is not successful.public void setLinkUserToIBMid(boolean iLinkUserToIBMid)
linkUserToIBMid - The boolean value of whether to link the current user to IBMid.public void setIbmId(java.lang.String ibmId)
ibmId - The IBM idpublic void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplhshReqParameters - The request parameters.ECApplicationExceptionpublic void updateLockoutInformation(boolean valid_credentials)
throws ECException
valid_credentials - ECExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException