com.ibm.commerce.security.commands
Interface LogonCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
LogonCmdImpl

public interface LogonCmd
extends ControllerCommand

This controller command logs 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 setPostLogonURL. Upon unsuccessful authentication, the user is redirected to the URL specified by setReLogonURL.


Field Summary
static java.lang.String COPYRIGHT
Copyright field.
static java.lang.String defaultCommandClassName
Default command implementation class.
static java.lang.String NAME
Command name.
Method Summary
java.lang.String getAuthenticateUserId()
Retrieves the userId of the logged in user.
void setLogonId(java.lang.String strLogonId)
Sets the logonId 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.
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Command name.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
Default command implementation class.
See Also:
Constant Field Values
Method Detail

getAuthenticateUserId

public java.lang.String getAuthenticateUserId()
Retrieves the userId of the logged in user.
Returns:
The userId.

setLogonId

public void setLogonId(java.lang.String strLogonId)
Sets the logonId under which the current user wishes to logon.
Parameters:
strLogonId - The logonId.

setLogonPassword

public void setLogonPassword(java.lang.String strPassword)
Sets the password to be used for authentication with the new logon ID.
Parameters:
strPassword - The password.

setPostLogonURL

public void setPostLogonURL(java.lang.String strPostLoginURL)
Sets the URL to which the user should be redirected after successful authentication.
Parameters:
strPostLoginURL - The post login URL.

setReLogonURL

public void setReLogonURL(java.lang.String strReLoginURL)
Sets the URL to which the user should be redirected to if authentication was unsuccessful.
Parameters:
strReLoginURL - The relogin login URL.

Feedback