Class MyLuteceApp

java.lang.Object
fr.paris.lutece.plugins.mylutece.web.MyLuteceApp
All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication, Serializable

@RequestScoped @Named("mylutece.xpage.mylutece") 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 Details

    • MyLuteceApp

      public MyLuteceApp()
  • Method Details

    • getPage

      public fr.paris.lutece.portal.web.xpages.XPage getPage(jakarta.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:
      getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
      Parameters:
      request - The HTTP request
      nMode - The mode
      plugin - The plugin object which belongs the App
      Returns:
      The XPage object containing the page content
    • doLogin

      public String doLogin(jakarta.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

      public String isUserAuthenticated(jakarta.servlet.http.HttpServletRequest request)
      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

      public static String getLoginPageUrl()
      Returns the Login page URL of the Authentication Service
      Returns:
      The URL
    • getDoLoginUrl

      public static String getDoLoginUrl()
      Returns the DoLogin URL of the Authentication Service
      Returns:
      The URL
    • getDoLogoutUrl

      public static String getDoLogoutUrl()
      Returns the DoLogout URL of the Authentication Service
      Returns:
      The URL
    • getNewAccountUrl

      public static String getNewAccountUrl()
      Returns the NewAccount URL of the Authentication Service
      Returns:
      The URL
    • getViewAccountUrl

      public static String getViewAccountUrl()
      Returns the ViewAccount URL of the Authentication Service
      Returns:
      The URL
    • getLostPasswordUrl

      public static String getLostPasswordUrl()
      Returns the Lost Password URL of the Authentication Service
      Returns:
      The URL
    • getLostLoginUrl

      public static String getLostLoginUrl()
      Returns the Lost login URL of the Authentication Service
      Returns:
      The URL
    • getResetPasswordUrl

      public static String getResetPasswordUrl(jakarta.servlet.http.HttpServletRequest request)
      Returns the Reset Password URL of the Authentication Service
      Parameters:
      request - The request
      Returns:
      The URL
    • getDefaultRedirectUrl

      public static String getDefaultRedirectUrl()
      Returns the Default redirect URL of the Authentication Service
      Returns:
      The URL
    • doLogout

      public String doLogout(jakarta.servlet.http.HttpServletRequest request)
      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

      public static String getAccessDeniedTemplate()
      Returns the template for access denied
      Returns:
      The template path
    • getAccessControledTemplate

      public static String getAccessControledTemplate()
      Returns the template for access controled
      Returns:
      The template path
    • doResetConnectionLog

      public String doResetConnectionLog(jakarta.servlet.http.HttpServletRequest request)
      Reset the connection log of an IP.
      Parameters:
      request - The request
      Returns:
      The URL of the next page to display
    • getCurrentUrl

      public static String getCurrentUrl(jakarta.servlet.http.HttpServletRequest request)
      Returns the current url
      Parameters:
      request - The Http request
      Returns:
      The current url
    • setCurrentUrl

      public static void setCurrentUrl(jakarta.servlet.http.HttpServletRequest request)
      Set the current url
      Parameters:
      request - The Http request