fr.paris.lutece.plugins.comarquage.service
Class CoMarquageCacheService

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.plugins.comarquage.service.CoMarquageCacheService
All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService, fr.paris.lutece.portal.service.util.LuteceService

public class CoMarquageCacheService
extends fr.paris.lutece.portal.service.content.ContentService

This class delivers articles to web componants. It handles XML tranformation to HTML and provides a cache feature in order to reduce the number of tranformations.


Constructor Summary
CoMarquageCacheService()
           
 
Method Summary
 int getCacheSize()
          Gets the number of item currently in the cache.
 java.lang.String getName()
          Returns the Content Service name
 java.lang.String getPage(javax.servlet.http.HttpServletRequest request, int nMode)
          Returns the HTML (or XML) code for a page for a given mode.
 boolean isCacheEnable()
          Gets the current cache status.
 boolean isInvoked(javax.servlet.http.HttpServletRequest request)
          Analyzes request's parameters to see if the request should be handled by the current Content Service Should always return false in this case to prevent the getPage method from this service to be used.
 void resetCache()
          Reset the caches.
 
Methods inherited from class fr.paris.lutece.portal.service.content.ContentService
getPluginName, setPluginName
 
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
getCache, getFromCache, initCache, putInCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoMarquageCacheService

public CoMarquageCacheService()
Method Detail

getPage

public java.lang.String getPage(javax.servlet.http.HttpServletRequest request,
                                int nMode)
                         throws fr.paris.lutece.portal.service.security.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. Actually this method is not used : code generation for a comarquage page is always handled by CoMarquageApp.getPage

Specified by:
getPage in class fr.paris.lutece.portal.service.content.ContentService
Parameters:
request - The HTTP request containing content parameters
nMode - The current mode.
Returns:
The HTML (or XML) code of the page.
Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException - the UserNotSignedException
See Also:
CoMarquageApp.getPage(HttpServletRequest, int, Plugin)

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 Should always return false in this case to prevent the getPage method from this service to be used.

Specified by:
isInvoked in class fr.paris.lutece.portal.service.content.ContentService
Parameters:
request - The HTTP request
Returns:
false always

getName

public java.lang.String getName()
Returns the Content Service name

Returns:
The name as a String

isCacheEnable

public boolean isCacheEnable()
Gets the current cache status.

Specified by:
isCacheEnable in interface fr.paris.lutece.portal.service.cache.CacheableService
Overrides:
isCacheEnable in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
Returns:
true if enable, otherwise false

getCacheSize

public int getCacheSize()
Gets the number of item currently in the cache.

Specified by:
getCacheSize in interface fr.paris.lutece.portal.service.cache.CacheableService
Overrides:
getCacheSize in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
Returns:
the number of item currently in the cache.

resetCache

public void resetCache()
Reset the caches.

Specified by:
resetCache in interface fr.paris.lutece.portal.service.cache.CacheableService
Overrides:
resetCache in class fr.paris.lutece.portal.service.cache.AbstractCacheableService


Copyright © 2008 Mairie de Paris. All Rights Reserved.