Class MemberSearchModuleGenerator
- 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.MemberSearchModuleGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class MemberSearchModuleGenerator extends AbstractContentSolrSearchModuleGenerator
Generator for members search module
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.workspaces.search.module.AbstractContentSolrSearchModuleGenerator
_contentSearcherFactory, _cTypesHelper, _tagProviderEP
-
Fields inherited from class org.ametys.plugins.workspaces.search.module.AbstractSearchModuleGenerator
_categoryHelper, _categoryProviderEP, _currentUserProvider, _projectManager, _projectMembers, _resolver, _rightManager, _siteManager, _userHelper, _workspaceModuleEP
-
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
Constructors Constructor Description MemberSearchModuleGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Query
getProjectQuery(Request request)
Returns the project queryprotected Query
getQuery(String siteName, String lang, String textfield, Request request)
Get the search queryprotected ContentSearcherFactory.SimpleContentSearcher
getSearcher()
Get the searcherprotected String
getSortFieldName()
The sort field nameprotected Sort.Order
getSortOrder()
The sort orderprotected void
saxPage(Content content)
SAX page content-
Methods inherited from class org.ametys.plugins.workspaces.search.module.AbstractContentSolrSearchModuleGenerator
getSearchResults, saxAdditionalInformation, saxHit, saxTags, service
-
Methods inherited from class org.ametys.plugins.workspaces.search.module.AbstractSolrSearchModuleGenerator
saxHits
-
Methods inherited from class org.ametys.plugins.workspaces.search.module.AbstractSearchModuleGenerator
filterProjectsForModule, generate, getCategories, getProject, getProjects, saxCategory, saxCategoryColor, saxHits, saxProject, saxUser
-
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 Detail
-
MemberSearchModuleGenerator
public MemberSearchModuleGenerator()
-
-
Method Detail
-
getSearcher
protected ContentSearcherFactory.SimpleContentSearcher getSearcher()
Description copied from class:AbstractContentSolrSearchModuleGenerator
Get the searcher- Specified by:
getSearcher
in classAbstractContentSolrSearchModuleGenerator
- Returns:
- the searcher
-
getSortFieldName
protected String getSortFieldName()
Description copied from class:AbstractContentSolrSearchModuleGenerator
The sort field name- Specified by:
getSortFieldName
in classAbstractContentSolrSearchModuleGenerator
- Returns:
- the sort field name
-
getSortOrder
protected Sort.Order getSortOrder()
Description copied from class:AbstractContentSolrSearchModuleGenerator
The sort order- Specified by:
getSortOrder
in classAbstractContentSolrSearchModuleGenerator
- Returns:
- the sort order
-
getQuery
protected Query getQuery(String siteName, String lang, String textfield, Request request)
Description copied from class:AbstractContentSolrSearchModuleGenerator
Get the search query- Specified by:
getQuery
in classAbstractContentSolrSearchModuleGenerator
- Parameters:
siteName
- the current site namelang
- the current languagetextfield
- the search inputrequest
- the request- Returns:
- the search query
-
saxPage
protected void saxPage(Content content) throws SAXException
Description copied from class:AbstractContentSolrSearchModuleGenerator
SAX page content- Overrides:
saxPage
in classAbstractContentSolrSearchModuleGenerator
- Parameters:
content
- the content- Throws:
SAXException
- if an error occured while saxing
-
getProjectQuery
protected Query getProjectQuery(Request request)
Returns the project query- Parameters:
request
- the request- Returns:
- the project query
-
-