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:
- Serializable, ImageResource
public class DocumentImageResource
- extends 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
DocumentImageResource
public DocumentImageResource(DocumentModel doc,
String xPath)
getBlob
public Blob getBlob()
throws ClientException
- Specified by:
getBlob
in interface ImageResource
- Throws:
ClientException
getHash
public String getHash()
throws ClientException
- Specified by:
getHash
in interface ImageResource
- Throws:
ClientException
getModificationDate
public Calendar getModificationDate()
throws ClientException
- Specified by:
getModificationDate
in interface ImageResource
- Throws:
ClientException
setFileName
public void setFileName(String name)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.