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, 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, getViewInputProperties, isRetriable, mergeProperties, setGeneric, 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 static final java.lang.String ERRTASK_NAME
public static final boolean isPasswordInvalidationEnabled()
public java.lang.String getAuthenticateUserId()
getAuthenticateUserId
in interface LogonCmd
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
public 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 ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- 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 LogonCmd
strLogonId
- The logon ID to use when logging on to the store.public void setLogonPassword(java.lang.String strPassword)
setLogonPassword
in interface LogonCmd
strPassword
- The password to use when logging on to the store.public void setPostLogonURL(java.lang.String strPostLoginURL)
setPostLogonURL
in interface LogonCmd
strPostLoginURL
- The URL to redirect to after a successful logon.public void setReLogonURL(java.lang.String strReLoginURL)
setReLogonURL
in interface LogonCmd
strReLoginURL
- 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 ControllerCommand
setRequestProperties
in class ControllerCommandImpl
hshReqParameters
- The request parameters.ECApplicationException
public void updateLockoutInformation(boolean valid_credentials) throws ECException
valid_credentials
- ECException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException