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: 23940 $ $Date: 2020-06-29 14:21:15 -0300 (Mon, 29 Jun 2020) $
-
-
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 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 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, String uri)
Stores a requested page URI in the session, for later retrieval bygetRequestedPage(HttpServletRequest)
.-
Methods inherited from class lumis.portal.controller.ControllerHtml
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
-
-
-
-
Field Detail
-
LUM_REQUESTED_PAGE_COOKIE
public static final 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 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, 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
-
handleLogout
public void handleLogout(ITransaction transaction) throws ControllerException, PortalException
- Throws:
ControllerException
PortalException
-
handleLogin
public void handleLogin(ITransaction transaction) throws ControllerException, PortalException
- Throws:
ControllerException
PortalException
-
-