public final class PortalService extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildPageContent(int nCurrentPageId,
PageData data,
int nMode,
javax.servlet.http.HttpServletRequest request)
Returns the html code which represents the page content
|
static String |
buildPageContent(PageData data,
int nMode,
javax.servlet.http.HttpServletRequest request)
Returns the html code which represents the page content
|
static String |
formatPath(String strPath,
int nMode,
javax.servlet.http.HttpServletRequest request)
Formats the path specified in parameter and returns it
|
static String |
getAdminCssLinks()
Get the list of CSS links for session less pages
|
static Collection<ContentService> |
getContentServicesList()
Returns all registered Content services
|
static String |
getDefaultPage(javax.servlet.http.HttpServletRequest request,
int nMode)
Return the default page of the portal (the home page)
|
static ContentService |
getInvokedContentService(javax.servlet.http.HttpServletRequest request)
Analyzes request's parameters to find the ContentService that should handle the request
|
static Collection<Page> |
getPagePath(int nPageId)
Builds a collection of pages corresponding to the path of the page specified in parameter
|
static String |
getPagePathContent(int nPageId,
int nMode,
javax.servlet.http.HttpServletRequest request)
Returns the formated path of the site page whose identifier is specified in parameter
|
static int |
getRootPageId()
Returns the identifier of the root page of the portal read in the lutece.properties file
|
static String |
getSiteName()
Returns the site name
|
static String |
getXmlPagesList(Collection<Page> listPages)
Return the xml content of the pages contained in the list specified in parameter
|
static String |
getXPagePathContent(String strXPageName,
int nMode,
javax.servlet.http.HttpServletRequest request)
Returns the formated path of a xpage (ex : result of a seek)
|
static String |
getXPagePathContent(String strXPageName,
int nMode,
String strTitlesUrls,
javax.servlet.http.HttpServletRequest request)
Returns the formated extended path of an xpage.
|
static boolean |
isContactActivated()
Check if the cotnact plugin is activated
|
static boolean |
isExtendActivated()
Check if the extend plugin is activated
|
static void |
registerContentService(String strName,
ContentService cs)
Registers a new ContentService
|
static void |
setXslPortalPath(Map<String,String> mapParameters,
int nMode)
Sets XSL portal path
|
public static ContentService getInvokedContentService(javax.servlet.http.HttpServletRequest request)
request - The HTTP requestpublic static void registerContentService(String strName, ContentService cs)
strName - The namecs - The ContentServicepublic static Collection<ContentService> getContentServicesList()
public static int getRootPageId()
public static String getDefaultPage(javax.servlet.http.HttpServletRequest request, int nMode) throws SiteMessageException
request - The requestnMode - the mode idSiteMessageException - occurs when a site message need to be displayedpublic static String getXmlPagesList(Collection<Page> listPages)
listPages - The pages listpublic static String buildPageContent(PageData data, int nMode, javax.servlet.http.HttpServletRequest request)
data - The structure which contains the informations about the pagenMode - The mode in which displaying the page : normal or administrationrequest - The requestpublic static String buildPageContent(int nCurrentPageId, PageData data, int nMode, javax.servlet.http.HttpServletRequest request)
nCurrentPageId - the current page iddata - The structure which contains the informations about the pagenMode - The mode in which displaying the page : normal or administrationrequest - The requestpublic static String getPagePathContent(int nPageId, int nMode, javax.servlet.http.HttpServletRequest request)
nPageId - The identifier of the pagenMode - The mode to use for the formattingrequest - The HTTP requestpublic static String getXPagePathContent(String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)
strXPageName - The xpage namenMode - The mode to use for the formattingrequest - The HTTP requestpublic static Collection<Page> getPagePath(int nPageId)
nPageId - The identifier of the pagepublic static String formatPath(String strPath, int nMode, javax.servlet.http.HttpServletRequest request)
strPath - The path to formatnMode - The mode to use for the formattingrequest - The HTTP requestpublic static String getXPagePathContent(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request)
strXPageName - The xpage namenMode - The mode to use for the formattingstrTitlesUrls - list of links (url and titles)request - The HTTP requestpublic static void setXslPortalPath(Map<String,String> mapParameters, int nMode)
mapParameters - Parameters as a mapnMode - The modepublic static String getSiteName()
public static boolean isExtendActivated()
public static boolean isContactActivated()
public static String getAdminCssLinks()
Copyright © 2024 City of Paris. All rights reserved.