Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.pictures.tiles.api.imageresource
Class DocumentImageResource

java.lang.Object
  extended by 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

Constructor Summary
DocumentImageResource(DocumentModel doc, String xPath)
           
 
Method Summary
 Blob getBlob()
           
 String getHash()
           
 Calendar getModificationDate()
           
 void setFileName(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentImageResource

public DocumentImageResource(DocumentModel doc,
                             String xPath)
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.