Class MiniSiteSearchModuleGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.plugins.workspaces.search.module.AbstractSearchModuleGenerator
org.ametys.plugins.workspaces.search.module.AbstractSolrSearchModuleGenerator
org.ametys.plugins.workspaces.search.module.AbstractContentSolrSearchModuleGenerator
org.ametys.plugins.workspaces.search.module.MiniSiteSearchModuleGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
Generator for minisite search module
-
Field Summary
Fields inherited from class org.ametys.plugins.workspaces.search.module.AbstractContentSolrSearchModuleGenerator
_contentSearcherFactory, _cTypesHelper, _tagProviderEPFields inherited from class org.ametys.plugins.workspaces.search.module.AbstractSearchModuleGenerator
_categoryHelper, _categoryProviderEP, _currentUserProvider, _projectManager, _projectMembers, _resolver, _rightManager, _siteManager, _userHelper, _workspaceModuleEPFields 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 QuerygetProjectArticleQuery(Request request, String lang, List<Project> projects) Get the query for projects' articlesprotected QueryGet the search queryGet the searcherprotected StringThe sort field nameprotected SortOrderThe sort orderprotected voidsaxAdditionalInformation(Content content) SAX additional information on contentMethods inherited from class org.ametys.plugins.workspaces.search.module.AbstractContentSolrSearchModuleGenerator
getSearchResults, getSiteNames, getSiteQuery, saxHit, saxPage, saxTags, serviceMethods inherited from class org.ametys.plugins.workspaces.search.module.AbstractSolrSearchModuleGenerator
saxHitsMethods inherited from class org.ametys.plugins.workspaces.search.module.AbstractSearchModuleGenerator
filterProjectsForModule, generate, getCategories, getProject, getProjects, saxCategory, saxCategoryColor, saxHits, saxProject, saxUserMethods 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
-
MiniSiteSearchModuleGenerator
public MiniSiteSearchModuleGenerator()
-
-
Method Details
-
getSearcher
Description copied from class:AbstractContentSolrSearchModuleGeneratorGet the searcher- Specified by:
getSearcherin classAbstractContentSolrSearchModuleGenerator- Returns:
- the searcher
-
getSortFieldName
Description copied from class:AbstractContentSolrSearchModuleGeneratorThe sort field name- Specified by:
getSortFieldNamein classAbstractContentSolrSearchModuleGenerator- Returns:
- the sort field name
-
getSortOrder
Description copied from class:AbstractContentSolrSearchModuleGeneratorThe sort order- Specified by:
getSortOrderin classAbstractContentSolrSearchModuleGenerator- Returns:
- the sort order
-
getQuery
Description copied from class:AbstractContentSolrSearchModuleGeneratorGet the search query- Specified by:
getQueryin classAbstractContentSolrSearchModuleGenerator- Parameters:
siteName- the current site namelang- the current languagetextfield- the search inputrequest- the request- Returns:
- the search query
-
getProjectArticleQuery
Get the query for projects' articles- Parameters:
request- the requestlang- the languageprojects- the targeted projects- Returns:
- the query
-
saxAdditionalInformation
Description copied from class:AbstractContentSolrSearchModuleGeneratorSAX additional information on content- Overrides:
saxAdditionalInformationin classAbstractContentSolrSearchModuleGenerator- Parameters:
content- the content- Throws:
SAXException- if an error occurs while saxing
-