Package lumis.portal.authentication
Class LoginControllerHtml
- java.lang.Object
-
- lumis.portal.controller.ControllerHtml
-
- lumis.portal.authentication.LoginControllerHtml
-
public class LoginControllerHtml extends ControllerHtml
Controller responsible to handle login and logout operations.- Since:
- 4.0.0
- Version:
- $Revision: 26057 $ $Date: 2023-12-05 13:37:33 -0300 (Tue, 05 Dec 2023) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoginControllerHtml.RedirectValues
enum of possible values for "redirect" parameter for building friendly urls for logging out
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LUM_REQUESTED_PAGE_COOKIE
Requested page cookie name.-
Fields inherited from class lumis.portal.controller.ControllerHtml
out, request, response, sessionConfig, userConfig
-
-
Constructor Summary
Constructors Constructor Description LoginControllerHtml(HttpServletRequest request, HttpServletResponse response, PageContext pageContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getRequestedPage(HttpServletRequest request)
Returns the requested page URI stored for the session, used for redirecting after login.void
handleLogin(ITransaction transaction)
void
handleLogout(ITransaction transaction)
void
handleRequest()
static void
setRequestedPage(HttpServletRequest request, HttpServletResponse response, java.lang.String uri)
Stores a requested page URI in the session, for later retrieval bygetRequestedPage(HttpServletRequest)
.-
Methods inherited from class lumis.portal.controller.ControllerHtml
checkRequestIsPost, deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
-
-
-
-
Field Detail
-
LUM_REQUESTED_PAGE_COOKIE
public static final java.lang.String LUM_REQUESTED_PAGE_COOKIE
Requested page cookie name.- Since:
- 10.0.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoginControllerHtml
public LoginControllerHtml(HttpServletRequest request, HttpServletResponse response, PageContext pageContext) throws ControllerException, PortalException
- Parameters:
request
-response
-pageContext
-- Throws:
ControllerException
PortalException
-
-
Method Detail
-
getRequestedPage
public static java.lang.String getRequestedPage(HttpServletRequest request)
Returns the requested page URI stored for the session, used for redirecting after login.- Parameters:
request
- the http servlet request.- Returns:
- the stored value, or
null
if none is stored. - Since:
- 12.4.0
-
setRequestedPage
public static void setRequestedPage(HttpServletRequest request, HttpServletResponse response, java.lang.String uri)
Stores a requested page URI in the session, for later retrieval bygetRequestedPage(HttpServletRequest)
. Any value stored is replaced by the given one.- Parameters:
request
- the http servlet request.response
- the http servlet response.uri
- the requested page URI, ornull
to remove any value stored.- Since:
- 12.4.0
-
handleRequest
public void handleRequest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
handleLogout
public void handleLogout(ITransaction transaction) throws ControllerException, PortalException
- Throws:
ControllerException
PortalException
-
handleLogin
public void handleLogin(ITransaction transaction) throws ControllerException, PortalException
- Throws:
ControllerException
PortalException
-
-