fr.paris.lutece.plugins.document.modules.solr.business
Class SolrDocumentContentService

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.document.modules.solr.business.SolrDocumentContentService
All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService, fr.paris.lutece.portal.service.util.LuteceService, Cloneable, net.sf.ehcache.event.CacheEventListener

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


Constructor Summary
SolrDocumentContentService()
           
 
Method Summary
 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
 
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

SolrDocumentContentService

public SolrDocumentContentService()
Method Detail

getPage

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
Returns the document page for a given document and a given portlet. The page is built from XML data or retrieved from the cache if it's enable and the document in it.

Specified by:
getPage in class fr.paris.lutece.portal.service.content.ContentService
Parameters:
request - The HTTP request.
nMode - The current mode.
Returns:
The HTML code of the page as a String.
Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException
fr.paris.lutece.portal.service.message.SiteMessageException - occurs when a site message need to be displayed

isInvoked

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

Specified by:
isInvoked in class fr.paris.lutece.portal.service.content.ContentService
Parameters:
request - The HTTP request
Returns:
true if this ContentService should handle this request

getName

public String getName()
Returns the Content Service name

Returns:
The name as a String


Copyright © 2014 Mairie de Paris. All Rights Reserved.