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
Constructors Constructor Description ResourceByUUIDReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
Serializable
getKey()
long
getLastModified()
SourceValidity
getValidity()
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 Detail
-
ResourceByUUIDReader
public ResourceByUUIDReader()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
public void generate() throws IOException, SAXException, ProcessingException
- Specified by:
generate
in interfaceReader
- Throws:
IOException
SAXException
ProcessingException
-
getKey
public Serializable getKey()
- Specified by:
getKey
in interfaceCacheableProcessingComponent
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidity
in interfaceCacheableProcessingComponent
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfaceReader
- Overrides:
getLastModified
in classAbstractReader
-
recycle
public void recycle()
- Specified by:
recycle
in interfaceRecyclable
- Overrides:
recycle
in classAbstractReader
-
-