org.nuxeo.ecm.platform.pictures.tiles.api.imageresource
Class DocumentImageResource
java.lang.Object
org.nuxeo.ecm.platform.pictures.tiles.api.imageresource.DocumentImageResource
- All Implemented Interfaces:
- java.io.Serializable, ImageResource
public class DocumentImageResource
- extends java.lang.Object
- implements ImageResource
DocumentModel-based implementation of ImageResource.
Supports clean digest and modification date to have a clean invalidation system.
- Author:
- tiry
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentImageResource
public DocumentImageResource(DocumentModel doc,
java.lang.String xPath)
getBlob
public Blob getBlob()
throws ClientException
- Specified by:
getBlob
in interface ImageResource
- Throws:
ClientException
getHash
public java.lang.String getHash()
throws ClientException
- Specified by:
getHash
in interface ImageResource
- Throws:
ClientException
getModificationDate
public java.util.Calendar getModificationDate()
throws ClientException
- Specified by:
getModificationDate
in interface ImageResource
- Throws:
ClientException
setFileName
public void setFileName(java.lang.String name)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.