public class DocumentImageResource extends Object implements ImageResource
Modifier and Type | Field and Description |
---|---|
protected Blob |
blob |
protected DocumentModel |
doc |
protected String |
fileName |
protected String |
hash |
protected Calendar |
modified |
protected String |
xPath |
Constructor and Description |
---|
DocumentImageResource(DocumentModel doc,
String xPath) |
Modifier and Type | Method and Description |
---|---|
protected void |
compute() |
Blob |
getBlob() |
protected String |
getEscapedxPath(String xPath) |
String |
getHash() |
Calendar |
getModificationDate() |
void |
setFileName(String name) |
protected DocumentModel doc
public DocumentImageResource(DocumentModel doc, String xPath)
protected String getEscapedxPath(String xPath)
protected void compute() throws PropertyException
PropertyException
public Blob getBlob()
getBlob
in interface ImageResource
public String getHash()
getHash
in interface ImageResource
public Calendar getModificationDate()
getModificationDate
in interface ImageResource
public void setFileName(String name)
Copyright © 2015 Nuxeo SA. All rights reserved.