|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.servlet.security.AdminFormHandler atg.servlet.security.AdminLoginFormHandler
public class AdminLoginFormHandler
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.servlet.security.AdminFormHandler |
---|
RESOURCE_BUNDLE, sResources, STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESS |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
AdminLoginFormHandler()
Empty as all bean consructors usually are. |
Method Summary | |
---|---|
protected int |
checkFormError(java.lang.String pErrorURL,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Check to see if there were errors during the submit operation. |
java.lang.String |
getFailureRedirect()
Returns URL to which the user will be re-directed if the Login or Logout commands failed |
java.lang.String |
getLoginRedirect()
Returns URL to which the user gets re-directed upon successfull authentication |
java.lang.String |
getLogoutRedirect()
Returns URL to which the user gets re-directed upon successful Logout |
java.lang.String |
getPassword()
Returns Password passed through from the HTML form |
LoginUserAuthority |
getUserAuthority()
Returns UserAuthority that authenticates the user |
UserLoginManager |
getUserManager()
Returns Manages the login in process |
java.lang.String |
getUsername()
Returns Username passed through from the HTML form |
boolean |
handleLogin(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
on submit, takes the username and password tries to authenticate using appropriate UserAuthority |
boolean |
handleLogout(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
on submit logs the user out of the admin UserAuthority |
void |
setFailureRedirect(java.lang.String pFailureRedirect)
Sets URL to which the user will be re-directed if the Login or Logout commands failed |
void |
setLoginRedirect(java.lang.String pLoginRedirect)
Sets URL to which the user gets re-directed upon successfull authentication |
void |
setLogoutRedirect(java.lang.String pLogoutRedirect)
Sets URL to which the user gets re-directed upon successful Logout |
void |
setPassword(java.lang.String pPassword)
Sets Password passed through from the HTML form |
void |
setUserAuthority(LoginUserAuthority pUserAuthority)
Sets UserAuthority that authenticates the user |
void |
setUserManager(UserLoginManager pUserManager)
Sets Manages the login in process |
void |
setUsername(java.lang.String pUsername)
Sets Username passed through from the HTML form |
Methods inherited from class atg.servlet.security.AdminFormHandler |
---|
formatUserMessage, formatUserMessage, generatePropertyPath, getErrorRedirect, getLocale, setErrorRedirect |
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet, beforeGet |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public AdminLoginFormHandler()
Method Detail |
---|
public void setUsername(java.lang.String pUsername)
public java.lang.String getUsername()
public void setPassword(java.lang.String pPassword)
public java.lang.String getPassword()
public void setFailureRedirect(java.lang.String pFailureRedirect)
public java.lang.String getFailureRedirect()
public void setLoginRedirect(java.lang.String pLoginRedirect)
public java.lang.String getLoginRedirect()
public void setLogoutRedirect(java.lang.String pLogoutRedirect)
public java.lang.String getLogoutRedirect()
public void setUserAuthority(LoginUserAuthority pUserAuthority)
public LoginUserAuthority getUserAuthority()
public void setUserManager(UserLoginManager pUserManager)
public UserLoginManager getUserManager()
public boolean handleLogout(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public boolean handleLogin(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
protected int checkFormError(java.lang.String pErrorURL, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
AdminFormHandler
checkFormError
in class AdminFormHandler
pErrorURL
- the URL to redirect to if there are any form errorspRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet ioSTATUS_SUCCESS
,
STATUS_ERROR_STAY
,
STATUS_ERROR_REDIRECT
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |