Class ModularSearchGenerator
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.ModularSearchGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
Generator for modular search service
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CategoryHelperThe category helperprotected CategoryProviderExtensionPointThe category providerprotected CurrentUserProviderThe current user providerprotected ProjectManagerThe project managerprotected ProjectMemberManagerThe project member managerprotected SearchModuleExtensionPointSearch Module Extension Pointprotected SourceResolverSource ResolverFields 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 TypeMethodDescriptionvoidgenerate()Get the available projects (the user's project)protected voidsaxCategories(List<Project> projects) SAX the categoriesprotected voidsaxFilters(Request request) SAX the active filtersprotected voidsaxProjects(List<Project> projects) SAX the available projectsprotected voidsaxSearchModule(SearchModule searchModule, boolean withResults, int offset) SAX the existing search moduleprotected voidsaxSearchModuleResults(SearchModule searchModule, int offset) Sax the results of a search moduleprotected voidsaxSearchModules(boolean withResults) SAX the existing search modulevoidservice(ServiceManager smanager) Methods 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
-
Field Details
-
_searchModuleEP
Search Module Extension Point -
_sourceResolver
Source Resolver -
_projectManager
The project manager -
_currentUserProvider
The current user provider -
_projectMemberManager
The project member manager -
_categoryProviderEP
The category provider -
_categoryHelper
The category helper
-
-
Constructor Details
-
ModularSearchGenerator
public ModularSearchGenerator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableGenerator- Throws:
ServiceException
-
generate
-
saxSearchModules
SAX the existing search module- Parameters:
withResults- true to set results- Throws:
SAXException- if an error occurred while saxing
-
saxSearchModule
protected void saxSearchModule(SearchModule searchModule, boolean withResults, int offset) throws SAXException SAX the existing search module- Parameters:
searchModule- The search modulewithResults- true to set resultsoffset- the offset search- Throws:
SAXException- if an error occurred while saxing
-
saxSearchModuleResults
Sax the results of a search module- Parameters:
searchModule- the search moduleoffset- the offset search
-
getAvailableProjects
Get the available projects (the user's project)- Returns:
- the available projects for search
-
saxFilters
SAX the active filters- Parameters:
request- the request- Throws:
SAXException- if an error occurred while saxing
-
saxProjects
SAX the available projects- Parameters:
projects- the projects to sax- Throws:
SAXException- if an error occurred while saxing
-
saxCategories
SAX the categories- Parameters:
projects- the available projects- Throws:
SAXException- if an error occurred while saxing
-