fr.paris.lutece.portal.service.content
Class ContentService

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.AbstractCacheableService
      extended by fr.paris.lutece.portal.service.content.ContentService
All Implemented Interfaces:
CacheableService, LuteceService
Direct Known Subclasses:
PageService, StandaloneAppService, XPageAppService

public abstract class ContentService
extends AbstractCacheableService

Interface for pages provider services.


Constructor Summary
ContentService()
           
 
Method Summary
abstract  java.lang.String getPage(javax.servlet.http.HttpServletRequest request, int nMode)
          Returns the HTML (or XML) code for a page for a given mode.
abstract  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.cache.AbstractCacheableService
getCache, getCacheSize, getFromCache, initCache, isCacheEnable, putInCache, resetCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.portal.service.util.LuteceService
getName
 

Constructor Detail

ContentService

public ContentService()
Method Detail

getPage

public abstract java.lang.String getPage(javax.servlet.http.HttpServletRequest request,
                                         int nMode)
                                  throws UserNotSignedException
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.

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

isInvoked

public abstract boolean isInvoked(javax.servlet.http.HttpServletRequest request)
Analyzes request's parameters to see if the request should be handled by the current Content Service

Parameters:
request - The HTTP request
Returns:
true if this ContentService should handle this request


Copyright © 2007 Mairie de Paris. All Rights Reserved.