fr.paris.lutece.plugins.mylutece.web
Class MyLuteceApp

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
MyLuteceApp()
          Constructor
 
Method Summary
 String doLogin(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoMyLuteceLogin.jsp
 String doLogout(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoMyLuteceLogout.jsp
 String doResetConnectionLog(javax.servlet.http.HttpServletRequest request)
          Reset the connection log of an IP.
static String getAccessControledTemplate()
          Returns the template for access controled
static String getAccessDeniedTemplate()
          Returns the template for access denied
static String getCurrentUrl(javax.servlet.http.HttpServletRequest request)
          Returns the current url
static String getDefaultRedirectUrl()
          Returns the Default redirect URL of the Authentication Service
static String getDoLoginUrl()
          Returns the DoLogin URL of the Authentication Service
static String getDoLogoutUrl()
          Returns the DoLogout URL of the Authentication Service
static String getLoginPageUrl()
          Returns the Login page URL of the Authentication Service
static String getLostLoginUrl()
          Returns the Lost login URL of the Authentication Service
static String getLostPasswordUrl()
          Returns the Lost Password URL of the Authentication Service
static String getNewAccountUrl()
          Returns the NewAccount URL of the Authentication Service
 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
static String getResetPasswordUrl(javax.servlet.http.HttpServletRequest request)
          Returns the Reset Password URL of the Authentication Service
static String getViewAccountUrl()
          Returns the ViewAccount URL of the Authentication Service
static void setCurrentUrl(javax.servlet.http.HttpServletRequest request)
          Set the current url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyLuteceApp

public MyLuteceApp()
Constructor

Method Detail

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:
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(javax.servlet.http.HttpServletRequest request)
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.

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(javax.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(javax.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(javax.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(javax.servlet.http.HttpServletRequest request)
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


Copyright © 2014 Mairie de Paris. All Rights Reserved.