|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.security.commands.LogonCmdImpl
This controller command will log the user into the system. If the user is logging in from a guest shopper identity then the resources that exist under the guest shopper identity is migrated to the identity to which the user is logging in.
Before executing this task command, the methods listed below must be invoked.
setLogonId setPassword setReLogonURL setPostLogonURL
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.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
ERRTASK_NAME
|
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands.LogonCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
LogonCmdImpl()
|
Method Summary | |
java.lang.String |
getAuthenticateUserId()
Retrieves the user ID of the logged in user. |
protected java.lang.String |
getLogonId()
Retrieves the logon ID under which the current user wishes to logon. |
protected java.lang.String |
getLogonPassword()
Retrieves the password to be used for authentication with the new logon ID. |
protected java.lang.String |
getPostLogonURL()
Retrieves the URL to w which the user should be redirected to after successful authentication. |
protected java.lang.String |
getReLogonURL()
Retrieves the URL to which the user should be redirected to if authentication was unsuccessful. |
protected boolean |
isAccountDisabled()
|
boolean |
isGeneric()
Check to see if this is a generic command. |
protected boolean |
isLogonAllowedNow()
|
protected boolean |
isValidCredentials()
Based on the configuration parameters in the WCS configuration file, one of three authentication task will be called. |
protected void |
migrateUserEntries()
This method will migrate 'resources' belonging to the current user to the identity, associated with the logon ID, which the user will be assuming once the logon is successful. |
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 under which the current user wishes to logon. |
void |
setLogonPassword(java.lang.String strPassword)
Sets the password to be used for authentication with the new logon ID. |
void |
setPostLogonURL(java.lang.String strPostLoginURL)
Sets the URL to which the user should be redirected after successful authentication. |
void |
setReLogonURL(java.lang.String strReLoginURL)
Sets the URL to which the user should be redirected to if authentication was unsuccessful. |
void |
setRequestProperties(TypedProperty hshReqParameters)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. |
protected void |
updateCmdContext()
Switches the current user identity to the identity associated with the LoginID supplied to this Logon command. |
void |
updateLockoutInformation(boolean valid_credentials)
|
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
Constructor Detail |
public LogonCmdImpl()
Method Detail |
public java.lang.String getAuthenticateUserId()
LogonCmd
getAuthenticateUserId
in interface LogonCmd
com.ibm.commerce.security.commands.LogonCmd
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()
ControllerCommand
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
protected boolean isLogonAllowedNow()
protected boolean isValidCredentials() throws ECException
protected void migrateUserEntries() throws ECException
public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setLogonId(java.lang.String strLogonId)
LogonCmd
setLogonId
in interface LogonCmd
com.ibm.commerce.security.commands.LogonCmd
strLogonID
- The logon ID.public void setLogonPassword(java.lang.String strPassword)
LogonCmd
setLogonPassword
in interface LogonCmd
com.ibm.commerce.security.commands.LogonCmd
strPassword
- The password.public void setPostLogonURL(java.lang.String strPostLoginURL)
LogonCmd
setPostLogonURL
in interface LogonCmd
com.ibm.commerce.security.commands.LogonCmd
strPostLoginURL
- The post login URL.public void setReLogonURL(java.lang.String strReLoginURL)
LogonCmd
setReLogonURL
in interface LogonCmd
com.ibm.commerce.security.commands.LogonCmd
strReLoginURL
- The relogin login URL.public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- protected void updateCmdContext() throws ECException
public void updateLockoutInformation(boolean valid_credentials) throws ECException
public void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |