public final class DocumentContentService
extends fr.paris.lutece.portal.service.content.ContentService
implements net.sf.ehcache.event.CacheEventListener
Constructor and Description |
---|
DocumentContentService() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
void |
dispose() |
String |
getName()
Returns the Content Service name
|
String |
getPage(javax.servlet.http.HttpServletRequest request,
int nMode)
Returns the document page for a given document and a given portlet.
|
boolean |
isInvoked(javax.servlet.http.HttpServletRequest request)
Analyzes request parameters to see if the request should be handled by
the current Content Service
|
void |
notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyRemoveAll(net.sf.ehcache.Ehcache cache) |
void |
removeFromCache(String strDocumentId,
String strPortletId)
Remove a document from the cache
|
getPluginName, setPluginName
public String getPage(javax.servlet.http.HttpServletRequest request, int nMode) throws fr.paris.lutece.portal.service.security.UserNotSignedException, fr.paris.lutece.portal.service.message.SiteMessageException
getPage
in class fr.paris.lutece.portal.service.content.ContentService
request
- The HTTP request.nMode
- The current mode.fr.paris.lutece.portal.service.security.UserNotSignedException
- If the user is not signedfr.paris.lutece.portal.service.message.SiteMessageException
- occurs when a site message need to be
displayedpublic boolean isInvoked(javax.servlet.http.HttpServletRequest request)
isInvoked
in class fr.paris.lutece.portal.service.content.ContentService
request
- The HTTP requestpublic String getName()
getName
in interface fr.paris.lutece.portal.service.util.LuteceService
public void dispose()
dispose
in interface net.sf.ehcache.event.CacheEventListener
dispose
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
CacheEventListener.dispose()
public void notifyElementEvicted(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
notifyElementEvicted
in interface net.sf.ehcache.event.CacheEventListener
notifyElementEvicted
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
CacheEventListener.notifyElementEvicted(net.sf.ehcache.Ehcache,
net.sf.ehcache.Element)
public void notifyElementExpired(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
notifyElementExpired
in interface net.sf.ehcache.event.CacheEventListener
notifyElementExpired
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
CacheEventListener.notifyElementExpired(net.sf.ehcache.Ehcache,
net.sf.ehcache.Element)
public void notifyElementPut(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) throws net.sf.ehcache.CacheException
notifyElementPut
in interface net.sf.ehcache.event.CacheEventListener
notifyElementPut
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
net.sf.ehcache.CacheException
CacheEventListener.notifyElementPut(net.sf.ehcache.Ehcache,
net.sf.ehcache.Element)
public void notifyElementRemoved(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) throws net.sf.ehcache.CacheException
notifyElementRemoved
in interface net.sf.ehcache.event.CacheEventListener
notifyElementRemoved
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
net.sf.ehcache.CacheException
CacheEventListener.notifyElementRemoved(net.sf.ehcache.Ehcache,
net.sf.ehcache.Element)
public void notifyElementUpdated(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) throws net.sf.ehcache.CacheException
notifyElementUpdated
in interface net.sf.ehcache.event.CacheEventListener
notifyElementUpdated
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
net.sf.ehcache.CacheException
CacheEventListener.notifyElementUpdated(net.sf.ehcache.Ehcache,
net.sf.ehcache.Element)
public void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
notifyRemoveAll
in interface net.sf.ehcache.event.CacheEventListener
notifyRemoveAll
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
CacheEventListener.notifyRemoveAll(net.sf.ehcache.Ehcache)
public Object clone()
clone
in interface net.sf.ehcache.event.CacheEventListener
clone
in class fr.paris.lutece.portal.service.cache.AbstractCacheableService
Object.clone()
Copyright © 2020 City of Paris. All rights reserved.