fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web
Class MyLuteceDirectoryApp

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp
All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication

public class MyLuteceDirectoryApp
extends Object
implements fr.paris.lutece.portal.web.xpages.XPageApplication

This class provides the XPageApp that manage personalization features for Mylutece Directory module : login, account management, ...


Constructor Summary
MyLuteceDirectoryApp()
           
 
Method Summary
 FormErrors doCreateAccount(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoCreateAccount.jsp
 String doLogout(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoMyLuteceLogout.jsp
 String doModifyAccount(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoModifyAccount.jsp
 String doReinitPassword(javax.servlet.http.HttpServletRequest request)
          Do reinit the password
 String doSendLogin(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoSendLogin.jsp
 String doSendPassword(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoSendPassword.jsp
static String getAccessControledTemplate()
          Returns the template for access controled
static String getAccessDeniedTemplate()
          Returns the template for access denied
static String getAccessDeniedUrl()
          Returns the NewAccount URL of the Authentication Service
static String getDefaultRedirectUrl()
          Returns the Default redirect 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
 void getMessageResetPassword(javax.servlet.http.HttpServletRequest request)
           
static String getMessageResetPasswordUrl()
           
static String getModifyAccountUrl()
          Returns the NewAccount URL of the Authentication Service
static String getNewAccountUrl()
          Returns the createAccount 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)
           
static String getReinitPageUrl()
          Returns the Reinit password page URL of the Authentication Service
 fr.paris.lutece.portal.web.xpages.XPage getReinitPasswordPage(fr.paris.lutece.portal.web.xpages.XPage page, javax.servlet.http.HttpServletRequest request)
          Get reinit password page
static String getResetPasswordUrl()
          Returns the Reset Password URL of the Authentication Service
static String getViewAccountUrl()
          Returns the ViewAccount URL of the Authentication Service
 void init(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyLuteceDirectoryApp

public MyLuteceDirectoryApp()
Method Detail

init

public void init(javax.servlet.http.HttpServletRequest request,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
request - The HTTP request
plugin - The plugin

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)
                                                throws fr.paris.lutece.portal.service.security.UserNotSignedException,
                                                       fr.paris.lutece.portal.service.message.SiteMessageException
Specified by:
getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
Parameters:
request - The HTTP request
nMode - The mode (admin, ...)
plugin - The plugin
Returns:
The Xpage
Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException - if user not signed
fr.paris.lutece.portal.service.message.SiteMessageException - Occurs when a site message need to be displayed

getModifyAccountUrl

public static String getModifyAccountUrl()
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

getNewAccountUrl

public static String getNewAccountUrl()
Returns the createAccount 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()
Returns the Reset Password URL of the Authentication Service

Returns:
The URL

getMessageResetPasswordUrl

public static String getMessageResetPasswordUrl()

getDefaultRedirectUrl

public static String getDefaultRedirectUrl()
Returns the Default redirect URL of the Authentication Service

Returns:
The URL

getAccessDeniedUrl

public static String getAccessDeniedUrl()
Returns the NewAccount URL of the Authentication Service

Returns:
The URL

getReinitPageUrl

public static String getReinitPageUrl()
Returns the Reinit password page 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.

doCreateAccount

public FormErrors doCreateAccount(javax.servlet.http.HttpServletRequest request)
This method is call by the JSP named DoCreateAccount.jsp

Parameters:
request - The HTTP request
Returns:
The URL to forward depending of the result of the change.

doModifyAccount

public String doModifyAccount(javax.servlet.http.HttpServletRequest request)
This method is call by the JSP named DoModifyAccount.jsp

Parameters:
request - The HTTP request
Returns:
The URL to forward depending of the result of the change.

doSendPassword

public String doSendPassword(javax.servlet.http.HttpServletRequest request)
This method is call by the JSP named DoSendPassword.jsp

Parameters:
request - The HTTP request
Returns:
The URL to forward depending of the result of the sending.

doSendLogin

public String doSendLogin(javax.servlet.http.HttpServletRequest request)
This method is call by the JSP named DoSendLogin.jsp

Parameters:
request - The HTTP request
Returns:
The URL to forward depending of the result of the sending.

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

getReinitPasswordPage

public fr.paris.lutece.portal.web.xpages.XPage getReinitPasswordPage(fr.paris.lutece.portal.web.xpages.XPage page,
                                                                     javax.servlet.http.HttpServletRequest request)
                                                              throws fr.paris.lutece.portal.service.message.SiteMessageException
Get reinit password page

Parameters:
page - the page
request - the HTTP servlet request
Returns:
the page
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException - site message if the key is wrong

doReinitPassword

public String doReinitPassword(javax.servlet.http.HttpServletRequest request)
Do reinit the password

Parameters:
request - the http servlet request
Returns:
the url return

getMessageResetPassword

public void getMessageResetPassword(javax.servlet.http.HttpServletRequest request)
                             throws fr.paris.lutece.portal.service.message.SiteMessageException
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException


Copyright © 2013 Mairie de Paris. All Rights Reserved.