Package org.ametys.cms.search.cocoon
Class DocSearchGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,Contextualizable
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Generate contents returned by the
SearchAction
, groups by selected fields.-
Field Summary
Fields inherited from class org.ametys.cms.search.cocoon.SearchGenerator
_columnHelper, _contentTypeExtensionPoint, _context, _cTypeHelper, _searchModelManager, _serverCommHelper, CONTENT_VERSION_LABEL
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
saxContents
(SearchModel model, SearchResults<Content> results, String versionLabel, Map<String, Object> jsParameters, Locale locale, Map<String, Object> contextualParameters) Sax a set of contentsvoid
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.cms.search.cocoon.SearchGenerator
contextualize, generate, getColumnsFromParameters, getCommonContentTypeIds, getViewItems, saxContent, switchToLabel
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Constructor Details
-
DocSearchGenerator
public DocSearchGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSearchGenerator
- Throws:
ServiceException
-
saxContents
protected void saxContents(SearchModel model, SearchResults<Content> results, String versionLabel, Map<String, Object> jsParameters, Locale locale, Map<String, throws SAXException, AmetysRepositoryException, IOException, ProcessingExceptionObject> contextualParameters) Description copied from class:SearchGenerator
Sax a set of contents- Overrides:
saxContents
in classSearchGenerator
- Parameters:
model
- search modelresults
- contentsversionLabel
- version labeljsParameters
- parameters of the searchlocale
- The locale to use for localized values if content's language is null.contextualParameters
- The contextual parameters- Throws:
SAXException
- if a error occurred during saxAmetysRepositoryException
- if a error occurredIOException
- if a error occurredProcessingException
- if a error occurred
-