Class MyLuteceApp
java.lang.Object
fr.paris.lutece.plugins.mylutece.web.MyLuteceApp
- All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication,Serializable
public class MyLuteceApp
extends Object
implements fr.paris.lutece.portal.web.xpages.XPageApplication
This class provides the XPageApp that manage personalization features for Lutece : login, account management, ...
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoLogin(javax.servlet.http.HttpServletRequest request) This method is call by the JSP named DoMyLuteceLogin.jspdoLogout(javax.servlet.http.HttpServletRequest request) This method is call by the JSP named DoMyLuteceLogout.jspdoResetConnectionLog(javax.servlet.http.HttpServletRequest request) Reset the connection log of an IP.static StringReturns the template for access controledstatic StringReturns the template for access deniedstatic StringgetCurrentUrl(javax.servlet.http.HttpServletRequest request) Returns the current urlstatic StringReturns the Default redirect URL of the Authentication Servicestatic StringReturns the DoLogin URL of the Authentication Servicestatic StringReturns the DoLogout URL of the Authentication Servicestatic StringReturns the Login page URL of the Authentication Servicestatic StringReturns the Lost login URL of the Authentication Servicestatic StringReturns the Lost Password URL of the Authentication Servicestatic StringReturns the NewAccount URL of the Authentication Servicefr.paris.lutece.portal.web.xpages.XPagegetPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) This method builds a XPage object corresponding to the requeststatic StringgetResetPasswordUrl(javax.servlet.http.HttpServletRequest request) Returns the Reset Password URL of the Authentication Servicestatic StringReturns the ViewAccount URL of the Authentication ServiceisUserAuthenticated(javax.servlet.http.HttpServletRequest request) Check if the current user is authenticatedstatic voidsetCurrentUrl(javax.servlet.http.HttpServletRequest request) Set the current url
-
Constructor Details
-
MyLuteceApp
public MyLuteceApp()Constructor
-
-
Method Details
-
getPage
public fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) This method builds a XPage object corresponding to the request- Specified by:
getPagein interfacefr.paris.lutece.portal.web.xpages.XPageApplication- Parameters:
request- The HTTP requestnMode- The modeplugin- The plugin object which belongs the App- Returns:
- The XPage object containing the page content
-
doLogin
public String doLogin(javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException This method is call by the JSP named DoMyLuteceLogin.jsp- Parameters:
request- The HTTP request- Returns:
- The URL to forward depending of the result of the login.
- Throws:
UnsupportedEncodingException
-
isUserAuthenticated
Check if the current user is authenticated- Parameters:
request- The request- Returns:
- A JSON string containing true in the field result if the user is authenticated
-
getLoginPageUrl
Returns the Login page URL of the Authentication Service- Returns:
- The URL
-
getDoLoginUrl
Returns the DoLogin URL of the Authentication Service- Returns:
- The URL
-
getDoLogoutUrl
Returns the DoLogout URL of the Authentication Service- Returns:
- The URL
-
getNewAccountUrl
Returns the NewAccount URL of the Authentication Service- Returns:
- The URL
-
getViewAccountUrl
Returns the ViewAccount URL of the Authentication Service- Returns:
- The URL
-
getLostPasswordUrl
Returns the Lost Password URL of the Authentication Service- Returns:
- The URL
-
getLostLoginUrl
Returns the Lost login URL of the Authentication Service- Returns:
- The URL
-
getResetPasswordUrl
Returns the Reset Password URL of the Authentication Service- Parameters:
request- The request- Returns:
- The URL
-
getDefaultRedirectUrl
Returns the Default redirect URL of the Authentication Service- Returns:
- The URL
-
doLogout
This method is call by the JSP named DoMyLuteceLogout.jsp- Parameters:
request- The HTTP request- Returns:
- The URL to forward depending of the result of the login.
-
getAccessDeniedTemplate
Returns the template for access denied- Returns:
- The template path
-
getAccessControledTemplate
Returns the template for access controled- Returns:
- The template path
-
doResetConnectionLog
Reset the connection log of an IP.- Parameters:
request- The request- Returns:
- The URL of the next page to display
-
getCurrentUrl
Returns the current url- Parameters:
request- The Http request- Returns:
- The current url
-
setCurrentUrl
public static void setCurrentUrl(javax.servlet.http.HttpServletRequest request) Set the current url- Parameters:
request- The Http request
-