|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.portal.PortalService
public final class PortalService
This class provides methods to build the pages of the portal and manage the cache
| Method Summary | |
|---|---|
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 Collection<CacheableService> |
getCacheableServicesList()
Deprecated. Use CacheService.getCacheableServicesList() instead |
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 |
isExtendActivated()
Check if the extend plugin is activated |
static void |
registerCacheableService(String strName,
CacheableService cs)
Deprecated. Use CacheService.registerCacheableService( String strName, CacheableService cs ) instead |
static void |
registerContentService(String strName,
ContentService cs)
Registers a new ContentService |
static void |
resetCache()
Deprecated. use CacheService.resetCaches() |
static void |
setXslPortalPath(Map<String,String> mapParameters,
int nMode)
Sets XSL portal path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@Deprecated public static void resetCache()
public static ContentService getInvokedContentService(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static void registerContentService(String strName,
ContentService cs)
strName - The namecs - The ContentServicepublic static Collection<ContentService> getContentServicesList()
@Deprecated
public static void registerCacheableService(String strName,
CacheableService cs)
strName - The namecs - The CacheableService@Deprecated public static Collection<CacheableService> getCacheableServicesList()
public static int getRootPageId()
public static String getDefaultPage(javax.servlet.http.HttpServletRequest request,
int nMode)
throws SiteMessageException
request - The requestnMode - the mode id
SiteMessageException - occurs when a site message need to be displayedpublic static String getXmlPagesList(Collection<Page> listPages)
listPages - The pages list
public 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 request
public 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 request
public 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 request
public 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 request
public static Collection<Page> getPagePath(int nPageId)
nPageId - The identifier of the page
public 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 request
public 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 request
public static void setXslPortalPath(Map<String,String> mapParameters,
int nMode)
mapParameters - Parameters as a mapnMode - The modepublic static String getSiteName()
public static boolean isExtendActivated()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||