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_LABELFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsaxContents(SearchModel model, SearchResults<Content> results, String versionLabel, Map<String, Object> jsParameters, Locale locale, Map<String, Object> contextualParameters) Sax a set of contentsvoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.cms.search.cocoon.SearchGenerator
contextualize, generate, getColumnsFromParameters, getCommonContentTypeIds, getViewItems, saxContent, switchToLabelMethods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Constructor Details
-
DocSearchGenerator
public DocSearchGenerator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein 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:SearchGeneratorSax a set of contents- Overrides:
saxContentsin 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
-