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.
|
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.
|
protected java.lang.String | getLogonId()
This method retrieves the logon ID under which the current user wishes to logon.
|
protected java.lang.String | getLogonPassword()
This method retrieves the password to use for authentication with the new logon ID.
|
protected MemberAccessBean | getMemberObject()
This method gets the member object.
|
protected java.lang.String | getPostLogonURL()
This method retrieves the URL to redirect the user after successful authentication.
|
protected java.lang.String | getReLogonURL()
This method retrieves the URL to redirect the user after unsuccessful authentication.
|
protected UserEntriesMigrationEventData | getUserEntriesToBeMigrated(java.lang.Long memberId)
This method get the user entries that will be migrated, and returns <@link UserEntriesMigrationEventData> to maintain the user entries to be migrated, which will be used to raise the <@link UserEntriesMigrationEvent>
|
protected java.lang.Integer | getUserPasswordExpiredFlag()
This method returns the password expiry status of the logged on user.
|
protected UserRegistryAccessBean | getUserRegistryObject()
This method gets the user registry object.
|
protected boolean | isAccountDisabled()
This method determines whether or not the account is disabled.
|
protected boolean | isAnyParentOrgLocked()
This method returns true if any parent organization is locked.
|
boolean | isGeneric()
This method determines if a generic user is permitted to execute this command.
|
protected boolean | isLDAPUsed()
Deprecated.
in version 6.0, replaced by MemberHelper.isLDAPUsedForAuthentication()
|
protected boolean | isLogonAllowedNow()
This method determines if the user is allowed to logon at this time.
|
protected boolean | isLogonCompletedSuccessful()
This method returns true if the Logon command completed successfully, returns false if any of the following conditions is true.
|
static boolean | isPasswordInvalidationEnabled()
Returns true if password invalidation is enabled.
|
protected boolean | isUserApproved()
This method determines whether or not the user is approved.
|
protected boolean | isUserRegisteredInOrg()
This method determines whether or not the user has a role in the organization owning the store.
|
protected boolean | isValidCredentials()
This method authenticates the credential set.
|
protected void | migrateUserEntries()
This method will migrate 'resources' belonging to the current user to the identity associated with the new user logon ID.
|
protected boolean | needAssignRole()
This method returns whether we need assign roles to the user.
|
void | performExecute()
This is the main business logic of the command.
|
protected void | postLDAPAuthenticationProcessing()
Calls LDAPIntegrationCmd.postLogonProcessing(com.ibm.commerce.user.objects.UserAccessBean) to allow extra synchronization between the Commerce database and LDAP if it's needed.
|
protected void | raiseUserEntriesMigrationEvent()
This method raise the UserEntriesMigrationEvent
|
protected TypedProperty | removeSensitiveDataFromRequestProperties()
Remove sensitive data from request properties so that they will not show up in the krypto parameter in the URL.
|
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.
|
protected void | updateCmdContext()
This method switches the current user identity to the identity associated with the login ID supplied to this Logon command.
|
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.
|
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()
protected java.lang.String getLogonId()
protected java.lang.String getLogonPassword()
protected java.lang.String getPostLogonURL()
protected java.lang.String getReLogonURL()
protected boolean isAccountDisabled() throws ECSystemException
public boolean isGeneric()
protected boolean isLogonAllowedNow()
protected boolean isValidCredentials() throws ECException
protected void migrateUserEntries() throws ECException
public void performExecute() throws ECException
protected UserEntriesMigrationEventData getUserEntriesToBeMigrated(java.lang.Long memberId) throws ECException
protected void raiseUserEntriesMigrationEvent() throws ECException
protected void postLDAPAuthenticationProcessing() throws ECException
public void setLogonId(java.lang.String strLogonId)
public void setLogonPassword(java.lang.String strPassword)
public void setPostLogonURL(java.lang.String strPostLoginURL)
public void setReLogonURL(java.lang.String strReLoginURL)
public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
protected void updateCmdContext() throws ECException
public void updateLockoutInformation(boolean valid_credentials) throws ECException
public void validateParameters() throws ECException
protected boolean isAnyParentOrgLocked() throws ECException
protected boolean isUserRegisteredInOrg() throws ECException
protected boolean isUserApproved()
protected UserRegistryAccessBean getUserRegistryObject()
protected MemberAccessBean getMemberObject()
protected boolean isLDAPUsed()
protected java.lang.Integer getUserPasswordExpiredFlag()
protected boolean isLogonCompletedSuccessful()
protected TypedProperty removeSensitiveDataFromRequestProperties()
protected boolean needAssignRole()