Package org.ametys.cms.explorer
Class SearchResourcesGenerator
java.lang.Object
- All Implemented Interfaces:
 Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
Search resources in a specific explorer node.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSONUtilsThe JSON utilsprotected SearcherFactoryThe searcher factory.protected UserHelperThe user helperFields inherited from class org.ametys.plugins.explorer.resources.generators.ResourcesExplorerGenerator
_resolver, _userManager, RESOURCE, RESOURCE_COLLECTIONFields 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()protected QuerygetQuery(Request request, ExplorerNode explorerNode, String rootId) Build the query object corresponding to the user search.voidservice(ServiceManager sManager) Methods inherited from class org.ametys.plugins.explorer.resources.generators.SearchGenerator
getMetadataExpression, getResourceAttributesMethods inherited from class org.ametys.plugins.explorer.resources.generators.ResourcesExplorerGenerator
_matchFilter, getAdditionalAttributes, getExplorerNodeAttributes, getResourcesIconCls, saxCollection, saxCollection, saxCollection, saxCollection, saxCollection, saxExplorerNode, saxExplorerNode, saxResourceMethods 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
- 
_searcherFactory
The searcher factory. - 
_jsonUtils
The JSON utils - 
_userHelper
The user helper 
 - 
 - 
Constructor Details
- 
SearchResourcesGenerator
public SearchResourcesGenerator() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classResourcesExplorerGenerator- Throws:
 ServiceException
 - 
generate
- Specified by:
 generatein interfaceGenerator- Overrides:
 generatein classSearchGenerator- Throws:
 IOExceptionSAXExceptionProcessingException
 - 
getQuery
Build the query object corresponding to the user search.- Parameters:
 request- The user request.explorerNode- The explorer node to search into.rootId- The root ID, can be null to search all resources.- Returns:
 - the query object.
 
 
 -