fr.paris.lutece.portal.service.page
Class PageContentService

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.AbstractCacheableService
      extended by fr.paris.lutece.portal.service.content.ContentService
          extended by fr.paris.lutece.portal.service.page.PageContentService
All Implemented Interfaces:
CacheableService, LuteceService, Cloneable, net.sf.ehcache.event.CacheEventListener

public class PageContentService
extends ContentService

Author:
pierre

Constructor Summary
PageContentService()
           
 
Method Summary
 String getName()
          Returns the Service name
 String getPage(javax.servlet.http.HttpServletRequest request, int nMode)
          Returns the HTML (or XML) code for a page for a given mode.
 boolean isInvoked(javax.servlet.http.HttpServletRequest request)
          Analyzes request's parameters to see if the request should be handled by the current Content Service
 
Methods inherited from class fr.paris.lutece.portal.service.content.ContentService
getPluginName, setPluginName
 
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContentService

public PageContentService()
Method Detail

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:
getPage in class ContentService
Parameters:
request - The HTTP request containing content parameters
nMode - The current mode.
Returns:
The HTML (or XML) code of the page.
Throws:
UserNotSignedException - the UserNotSignedException
SiteMessageException - 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:
isInvoked in class ContentService
Parameters:
request - The HTTP request
Returns:
true if this ContentService should handle this request

getName

public String getName()
Returns the Service name

Returns:
The name as a String


Copyright © 2014 Mairie de Paris. All Rights Reserved.