Class PageContentService
java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.portal.service.content.ContentService
fr.paris.lutece.portal.service.page.PageContentService
- All Implemented Interfaces:
CacheableService,LuteceService,Cloneable,net.sf.ehcache.event.CacheEventListener
- Author:
- pierre
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the Service namegetPage(javax.servlet.http.HttpServletRequest request, int nMode) Returns the HTML (or XML) code for a page for a given mode.booleanisInvoked(javax.servlet.http.HttpServletRequest request) Analyzes request's parameters to see if the request should be handled by the current Content ServiceMethods inherited from class fr.paris.lutece.portal.service.content.ContentService
getPluginName, setPluginNameMethods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
Constructor Details
-
PageContentService
public PageContentService()
-
-
Method Details
-
getPage
public String getPage(javax.servlet.http.HttpServletRequest request, int nMode) throws UserNotSignedException, SiteMessageException Returns the HTML (or XML) code for a page for a given mode. The Service should use request parameters to identify the page content to provide.- Specified by:
getPagein classContentService- Parameters:
request- The HTTP request containing content parametersnMode- The current mode.- Returns:
- The HTML (or XML) code of the page.
- Throws:
UserNotSignedException- the UserNotSignedExceptionSiteMessageException- occurs when a site message need to be displayed
-
isInvoked
public boolean isInvoked(javax.servlet.http.HttpServletRequest request) Analyzes request's parameters to see if the request should be handled by the current Content Service- Specified by:
isInvokedin classContentService- Parameters:
request- The HTTP request- Returns:
- true if this ContentService should handle this request
-
getName
Returns the Service name- Returns:
- The name as a String
-