public class SearchResourcesGenerator extends SearchGenerator
Modifier and Type | Class and Description |
---|---|
(package private) class |
SearchResourcesGenerator.ResourceCreatorQuery
Represents a
Query testing the resource creator. |
Modifier and Type | Field and Description |
---|---|
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected SearcherFactory |
_searcherFactory
The searcher factory.
|
protected UserHelper |
_userHelper
The user helper
|
_explorerApplicationEP, _resolver, _userManager, RESOURCE, RESOURCE_COLLECTION
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
SearchResourcesGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate() |
protected Query |
getQuery(Request request,
ExplorerNode explorerNode,
String rootId)
Build the query object corresponding to the user search.
|
void |
service(ServiceManager sManager) |
getMetadataExpression, getResourceAttributes
_matchFilter, getAdditionalAttributes, getExplorerNodeAttributes, getResourcesIconCls, saxCollection, saxCollection, saxCollection, saxCollection, saxCollection, saxExplorerNode, saxExplorerNode, saxResource
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected SearcherFactory _searcherFactory
protected JSONUtils _jsonUtils
protected UserHelper _userHelper
public SearchResourcesGenerator()
public void service(ServiceManager sManager) throws ServiceException
service
in interface Serviceable
service
in class ResourcesExplorerGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
generate
in interface Generator
generate
in class SearchGenerator
IOException
SAXException
ProcessingException
protected Query getQuery(Request request, ExplorerNode explorerNode, String rootId)
request
- The user request.explorerNode
- The explorer node to search into.rootId
- The root ID, can be null to search all resources.