Package org.nuxeo.template.context
Class BlobHolderWrapper
- java.lang.Object
-
- org.nuxeo.template.context.BlobHolderWrapper
-
public class BlobHolderWrapper extends Object
Class helper used to expose Document as aBlobHolderin FreeMarker context- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected BlobHolderbhprotected DocumentModeldocprotected static Loglog
-
Constructor Summary
Constructors Constructor Description BlobHolderWrapper(DocumentModel doc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobgetBlob()BlobgetBlob(int index)BlobgetBlob(String name)List<Blob>getBlobs()StringgetBlobUrl(int index)StringgetBlobUrl(String name)protected static StringgetContextPathProperty()
-
-
-
Field Detail
-
bh
protected final BlobHolder bh
-
doc
protected final DocumentModel doc
-
-
Constructor Detail
-
BlobHolderWrapper
public BlobHolderWrapper(DocumentModel doc)
-
-
Method Detail
-
getContextPathProperty
protected static String getContextPathProperty()
-
getBlobUrl
public String getBlobUrl(int index)
-
getBlobUrl
public String getBlobUrl(String name)
-
-