fr.paris.lutece.portal.web
Class PortalJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.PortalJspBean

public class PortalJspBean
extends java.lang.Object

This class provides the methods to display the page of the site


Field Summary
static int MODE_ADMIN
           
static int MODE_HTML
           
 
Constructor Summary
PortalJspBean()
           
 
Method Summary
 java.lang.String getContent(javax.servlet.http.HttpServletRequest request)
          Returns the content of a page according to the parameters found in the http request.
 java.lang.String getContent(javax.servlet.http.HttpServletRequest request, int nMode)
          Returns the content of a page according to the parameters found in the http request.
 java.lang.String getCredits(javax.servlet.http.HttpServletRequest request)
          Returns the code for the popup of the credits
 java.lang.String getLegalInfos(javax.servlet.http.HttpServletRequest request)
          Returns the code for the popup of the legal infos
static java.lang.String getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
          Returns the url (asked before login) to redirect after login
 java.lang.String getStartUpFailurePage()
          Returns the code for the popup of the credits
static java.lang.String getUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
          Get the upload filter site next url
static java.lang.String redirectLogin(javax.servlet.http.HttpServletRequest request)
          This method is called by Portal.jsp when it caught an UserNotSignedException.
static void removeUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
          Remove the upload filter next url from the session
static void setUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
          Set the upload filter site next url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_HTML

public static final int MODE_HTML
See Also:
Constant Field Values

MODE_ADMIN

public static final int MODE_ADMIN
See Also:
Constant Field Values
Constructor Detail

PortalJspBean

public PortalJspBean()
Method Detail

getContent

public java.lang.String getContent(javax.servlet.http.HttpServletRequest request)
                            throws UserNotSignedException,
                                   SiteMessageException
Returns the content of a page according to the parameters found in the http request. One distinguishes article, page and xpage and the mode.

Parameters:
request - The http request
Returns:
the html code for the display of a page of a site
Throws:
UserNotSignedException - The UserNotSignedException
SiteMessageException - occurs when a site message need to be displayed

getContent

public java.lang.String getContent(javax.servlet.http.HttpServletRequest request,
                                   int nMode)
                            throws UserNotSignedException,
                                   SiteMessageException
Returns the content of a page according to the parameters found in the http request. One distinguishes article, page and xpage and the mode.

Parameters:
request - The http request
nMode - The mode (normal or administration)
Returns:
the html code for the display of a page of a site
Throws:
UserNotSignedException - The UserNotSignedException
SiteMessageException - occurs when a site message need to be displayed

getStartUpFailurePage

public java.lang.String getStartUpFailurePage()
Returns the code for the popup of the credits

Returns:
the html code for the popup credits

getCredits

public java.lang.String getCredits(javax.servlet.http.HttpServletRequest request)
Returns the code for the popup of the credits

Parameters:
request - The Http Request
Returns:
the html code for the popup credits

getLegalInfos

public java.lang.String getLegalInfos(javax.servlet.http.HttpServletRequest request)
Returns the code for the popup of the legal infos

Parameters:
request - The Http Request
Returns:
the html code for the legal infos

redirectLogin

public static java.lang.String redirectLogin(javax.servlet.http.HttpServletRequest request)
This method is called by Portal.jsp when it caught an UserNotSignedException. It gives the login url and stores in the session the url asked

Parameters:
request - The HTTP request
Returns:
The login page URL
Since:
v1.1

getLoginNextUrl

public static java.lang.String getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
Returns the url (asked before login) to redirect after login

Parameters:
request - The Http request
Returns:
The url asked before login
Since:
v1.1

setUploadFilterSiteNextUrl

public static void setUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
Set the upload filter site next url

Parameters:
request - the HTTP request

getUploadFilterSiteNextUrl

public static java.lang.String getUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
Get the upload filter site next url

Parameters:
request - the HTTP request
Returns:
the next url

removeUploadFilterSiteNextUrl

public static void removeUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
Remove the upload filter next url from the session

Parameters:
request - the HTTP request


Copyright © 2012 Mairie de Paris. All Rights Reserved.