Class SearchGenerator
- 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.explorer.resources.generators.ResourcesExplorerGenerator
-
- org.ametys.plugins.explorer.resources.generators.SearchGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
SearchResourcesGenerator
public class SearchGenerator extends ResourcesExplorerGenerator
Search resources
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.explorer.resources.generators.ResourcesExplorerGenerator
_explorerApplicationEP, _resolver, _userManager, RESOURCE, RESOURCE_COLLECTION
-
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 SearchGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
protected Expression
getMetadataExpression(Request request)
Get theExpression
protected AttributesImpl
getResourceAttributes(Resource resource)
Returns the attributes corresponding to a Resource.-
Methods inherited from class org.ametys.plugins.explorer.resources.generators.ResourcesExplorerGenerator
_matchFilter, getAdditionalAttributes, getExplorerNodeAttributes, getResourcesIconCls, saxCollection, saxCollection, saxCollection, saxCollection, saxCollection, saxExplorerNode, saxExplorerNode, saxResource, service
-
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
-
SearchGenerator
public SearchGenerator()
-
-
Method Detail
-
generate
public void generate() throws IOException, SAXException, ProcessingException
- Specified by:
generate
in interfaceGenerator
- Overrides:
generate
in classResourcesExplorerGenerator
- Throws:
IOException
SAXException
ProcessingException
-
getMetadataExpression
protected Expression getMetadataExpression(Request request)
Get theExpression
- Parameters:
request
- The request- Returns:
- the
Expression
-
getResourceAttributes
protected AttributesImpl getResourceAttributes(Resource resource)
Description copied from class:ResourcesExplorerGenerator
Returns the attributes corresponding to a Resource.- Overrides:
getResourceAttributes
in classResourcesExplorerGenerator
- Parameters:
resource
- The resource to SAX- Returns:
- the attributes
-
-