Package org.ametys.cms.data
Class ResourceByUUIDReader
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
org.ametys.cms.data.ResourceByUUIDReader
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Serviceable
,CacheableProcessingComponent
,Reader
,SitemapModelComponent
,SitemapOutputComponent
public class ResourceByUUIDReader
extends AbstractReader
implements Serviceable, CacheableProcessingComponent
Read a resource stored in the repository by its UUID
-
Field Summary
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
getKey()
long
void
recycle()
void
service
(ServiceManager smanager) void
setup
(SourceResolver sourceResolver, Map objectModelMap, String src, Parameters par) Methods inherited from class org.apache.cocoon.reading.AbstractReader
getMimeType, setOutputStream, shouldSetContentLength
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
ResourceByUUIDReader
public ResourceByUUIDReader()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setup
public void setup(SourceResolver sourceResolver, Map objectModelMap, String src, Parameters par) throws ProcessingException, SAXException, IOException - Specified by:
setup
in interfaceSitemapModelComponent
- Overrides:
setup
in classAbstractReader
- Throws:
ProcessingException
SAXException
IOException
-
generate
- Specified by:
generate
in interfaceReader
- Throws:
IOException
SAXException
ProcessingException
-
getKey
- Specified by:
getKey
in interfaceCacheableProcessingComponent
-
getValidity
- Specified by:
getValidity
in interfaceCacheableProcessingComponent
-
getLastModified
- Specified by:
getLastModified
in interfaceReader
- Overrides:
getLastModified
in classAbstractReader
-
recycle
- Specified by:
recycle
in interfaceRecyclable
- Overrides:
recycle
in classAbstractReader
-