public class DocumentScriptingWrapper extends HashMap<String,Object>
DocumentModel
to expose in a pretty way more information to automation scripts.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
protected CoreSession |
session |
Constructor and Description |
---|
DocumentScriptingWrapper(CoreSession session,
DocumentModel doc) |
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
equals, hashCode
protected final CoreSession session
protected final DocumentModel doc
public DocumentScriptingWrapper(CoreSession session, DocumentModel doc)
public DocumentModel getDoc()
public CoreSession getSession()
public DocumentScriptingWrapper getParent()
public DocumentScriptingWrapper getParent(String type)
public DocumentScriptingWrapper getWorkspace()
public DocumentScriptingWrapper 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 void setPropertyValue(String key, jdk.nashorn.api.scripting.ScriptObjectMirror value)
public String getVersionLabel()
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
containsKey
in class HashMap<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
containsValue
in class HashMap<String,Object>
public Serializable get(Object key)
public boolean isEmpty()
public int size()
public Collection<Object> values()
public Object put(String key, Object value)
ScriptObjectMirror
for array type from nashorn.public Serializable put(String key, Serializable value)
public Serializable remove(Object key)
public void clear()
Copyright © 2016 Nuxeo SA. All rights reserved.