Class MyLuteceDatabaseApp
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.database.authentication.web.MyLuteceDatabaseApp
-
- All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication,java.io.Serializable
public class MyLuteceDatabaseApp extends java.lang.Object implements fr.paris.lutece.portal.web.xpages.XPageApplicationThis class provides the XPageApp that manage personalization features for Mylutece Database module : login, account management, ...- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MyLuteceDatabaseApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdoChangePassword(javax.servlet.http.HttpServletRequest request)This method is call by the JSP named DoChangePassword.jspjava.lang.StringdoCreateAccount(javax.servlet.http.HttpServletRequest request)This method is call by the JSP named DoCreateAccount.jspjava.lang.StringdoLogout(javax.servlet.http.HttpServletRequest request)This method is call by the JSP named DoMyLuteceLogout.jspjava.lang.StringdoModifyAccount(javax.servlet.http.HttpServletRequest request)This method is call by the JSP named DoModifyAccount.jspjava.lang.StringdoReinitPassword(javax.servlet.http.HttpServletRequest request)Do reinit the passwordjava.lang.StringdoSendLogin(javax.servlet.http.HttpServletRequest request)This method is call by the JSP named DoSendLogin.jspjava.lang.StringdoSendPassword(javax.servlet.http.HttpServletRequest request)This method is call by the JSP named DoSendPassword.jspjava.lang.StringdoValidateAccount(javax.servlet.http.HttpServletRequest request)Do validate an accountstatic java.lang.StringgetAccessControledTemplate()Returns the template for access controledstatic java.lang.StringgetAccessDeniedTemplate()Returns the template for access deniedstatic java.lang.StringgetAccessDeniedUrl()Returns the NewAccount URL of the Authentication Servicestatic java.lang.StringgetChangePasswordUrl()Returns the NewAccount URL of the Authentication Servicestatic java.lang.StringgetDefaultRedirectUrl()Returns the Default redirect URL of the Authentication Servicestatic java.lang.StringgetLoginPageUrl()Returns the Login page URL of the Authentication Servicestatic java.lang.StringgetLostLoginUrl()Returns the Lost Password URL of the Authentication Servicestatic java.lang.StringgetLostPasswordUrl()Returns the Lost Password URL of the Authentication ServicevoidgetMessageResetPassword(javax.servlet.http.HttpServletRequest request)Get the reset password messagestatic java.lang.StringgetMessageResetPasswordUrl()Get the reset password Urlstatic java.lang.StringgetModifyAccountUrl()Returns the modifyAccount URL of the Authentication Servicestatic java.lang.StringgetNewAccountUrl()Returns the createAccount 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)static java.lang.StringgetReinitPageUrl()Returns the Reinit password page URL of the Authentication Servicefr.paris.lutece.portal.web.xpages.XPagegetReinitPasswordPage(fr.paris.lutece.portal.web.xpages.XPage page, javax.servlet.http.HttpServletRequest request)Get reinit password pagestatic java.lang.StringgetResetPasswordUrl()Returns the Reset Password URL of the Authentication Servicestatic java.lang.StringgetViewAccountUrl()Returns the ViewAccount URL of the Authentication Servicevoidinit(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)voidreactivateAccount(javax.servlet.http.HttpServletRequest request)Reactivate an account if necessary
-
-
-
Method Detail
-
init
public void init(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)- Parameters:
request- The HTTP requestplugin- 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:
getPagein interfacefr.paris.lutece.portal.web.xpages.XPageApplication- Parameters:
request- The HTTP requestnMode- The mode (admin, ...)plugin- The plugin- Returns:
- The Xpage
- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException- if user not signedfr.paris.lutece.portal.service.message.SiteMessageException- Occurs when a site message need to be displayed
-
getChangePasswordUrl
public static java.lang.String getChangePasswordUrl()
Returns the NewAccount URL of the Authentication Service- Returns:
- The URL
-
getViewAccountUrl
public static java.lang.String getViewAccountUrl()
Returns the ViewAccount URL of the Authentication Service- Returns:
- The URL
-
getNewAccountUrl
public static java.lang.String getNewAccountUrl()
Returns the createAccount URL of the Authentication Service- Returns:
- The URL
-
getModifyAccountUrl
public static java.lang.String getModifyAccountUrl()
Returns the modifyAccount URL of the Authentication Service- Returns:
- The URL
-
getLostPasswordUrl
public static java.lang.String getLostPasswordUrl()
Returns the Lost Password URL of the Authentication Service- Returns:
- The URL
-
getLostLoginUrl
public static java.lang.String getLostLoginUrl()
Returns the Lost Password URL of the Authentication Service- Returns:
- The URL
-
getResetPasswordUrl
public static java.lang.String getResetPasswordUrl()
Returns the Reset Password URL of the Authentication Service- Returns:
- The URL
-
getMessageResetPasswordUrl
public static java.lang.String getMessageResetPasswordUrl()
Get the reset password Url- Returns:
- the reset password Url
-
getDefaultRedirectUrl
public static java.lang.String getDefaultRedirectUrl()
Returns the Default redirect URL of the Authentication Service- Returns:
- The URL
-
getAccessDeniedUrl
public static java.lang.String getAccessDeniedUrl()
Returns the NewAccount URL of the Authentication Service- Returns:
- The URL
-
getLoginPageUrl
public static java.lang.String getLoginPageUrl()
Returns the Login page URL of the Authentication Service- Returns:
- The URL
-
getReinitPageUrl
public static java.lang.String getReinitPageUrl()
Returns the Reinit password page URL of the Authentication Service- Returns:
- the URL
-
doLogout
public java.lang.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 java.lang.String 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 java.lang.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.
-
doValidateAccount
public java.lang.String doValidateAccount(javax.servlet.http.HttpServletRequest request)
Do validate an account- Parameters:
request- the HTTP request- Returns:
- the login page url
-
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.SiteMessageExceptionGet reinit password page- Parameters:
page- the pagerequest- the HTTP servlet request- Returns:
- the page
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- site message if the key is wrong
-
doReinitPassword
public java.lang.String doReinitPassword(javax.servlet.http.HttpServletRequest request)
Do reinit the password- Parameters:
request- the http servlet request- Returns:
- the url return
-
doChangePassword
public java.lang.String doChangePassword(javax.servlet.http.HttpServletRequest request)
This method is call by the JSP named DoChangePassword.jsp- Parameters:
request- The HTTP request- Returns:
- The URL to forward depending of the result of the change.
-
doSendPassword
public java.lang.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 java.lang.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 java.lang.String getAccessDeniedTemplate()
Returns the template for access denied- Returns:
- The template path
-
getAccessControledTemplate
public static java.lang.String getAccessControledTemplate()
Returns the template for access controled- Returns:
- The template path
-
reactivateAccount
public void reactivateAccount(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageExceptionReactivate an account if necessary- Parameters:
request- The request- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- A SiteMessageException is ALWAYS thrown
-
getMessageResetPassword
public void getMessageResetPassword(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageExceptionGet the reset password message- Parameters:
request- The request- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- The exception thrown to redirect the user to the message
-
-