public class DocumentWrapper extends HashMap<String,Serializable>
DocumentModel
to expose in a pretty way more information to mvel scripts.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
protected CoreSession |
session |
Constructor and Description |
---|
DocumentWrapper(CoreSession session,
DocumentModel doc) |
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
equals, hashCode, toString
protected final CoreSession session
protected final DocumentModel doc
public DocumentWrapper(CoreSession session, DocumentModel doc)
public DocumentModel getDoc()
public CoreSession getSession()
public DocumentWrapper getParent()
public DocumentWrapper getParent(String type)
public DocumentWrapper getWorkspace()
public DocumentWrapper getDomain()
public String resolvePath(String relative)
public DocumentRef getRef()
public DocumentRef resolvePathAsRef(String relative)
public String getDescription()
public boolean removeFacet(String facet)
public DocumentType getDocumentType()
public String getLifeCycle()
public boolean isLocked()
public boolean isFolder()
public boolean isImmutable()
public boolean isProxy()
public boolean isVersion()
public boolean isDownloadable()
public boolean isVersionable()
public String[] getSchemas()
public Serializable getProperty(String key)
public Serializable getPropertyValue(String key)
public void setProperty(String key, Serializable value)
public void setPropertyValue(String key, Serializable value)
public String getVersionLabel()
public boolean containsKey(Object key)
containsKey
in interface Map<String,Serializable>
containsKey
in class HashMap<String,Serializable>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Serializable>
containsValue
in class HashMap<String,Serializable>
public Serializable get(Object key)
get
in interface Map<String,Serializable>
get
in class HashMap<String,Serializable>
public boolean isEmpty()
isEmpty
in interface Map<String,Serializable>
isEmpty
in class HashMap<String,Serializable>
public int size()
size
in interface Map<String,Serializable>
size
in class HashMap<String,Serializable>
public Set<String> keySet()
keySet
in interface Map<String,Serializable>
keySet
in class HashMap<String,Serializable>
public Collection<Serializable> values()
values
in interface Map<String,Serializable>
values
in class HashMap<String,Serializable>
public Set<Map.Entry<String,Serializable>> entrySet()
entrySet
in interface Map<String,Serializable>
entrySet
in class HashMap<String,Serializable>
public Serializable put(String key, Serializable value)
put
in interface Map<String,Serializable>
put
in class HashMap<String,Serializable>
public void putAll(Map<? extends String,? extends Serializable> m)
putAll
in interface Map<String,Serializable>
putAll
in class HashMap<String,Serializable>
public Serializable remove(Object key)
remove
in interface Map<String,Serializable>
remove
in class HashMap<String,Serializable>
public void clear()
clear
in interface Map<String,Serializable>
clear
in class HashMap<String,Serializable>
Copyright © 2015 Nuxeo SA. All rights reserved.