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>
Constructor and Description |
---|
DocumentWrapper(CoreSession session,
DocumentModel doc) |
equals, hashCode, toString
public DocumentWrapper(CoreSession session, DocumentModel doc)
public DocumentModel getDoc()
public CoreSession getSession()
public DocumentWrapper getParent() throws Exception
Exception
public DocumentWrapper getParent(String type) throws Exception
Exception
public DocumentWrapper getWorkspace() throws Exception
Exception
public DocumentWrapper getDomain() throws Exception
Exception
public String getPath()
public DocumentRef getRef()
public DocumentRef resolvePathAsRef(String relative)
public boolean hasFacet(String facet)
public boolean hasSchema(String schema)
public boolean addFacet(String facet)
public boolean removeFacet(String facet)
public String getType()
public DocumentType getDocumentType()
public boolean isLocked()
public boolean isFolder()
public boolean isImmutable()
public boolean isProxy()
public boolean isVersion()
public boolean isVersionable()
public String getId()
public String getName()
public String[] getSchemas()
public Serializable getProperty(String key) throws Exception
Exception
public Serializable getPropertyValue(String key) throws Exception
Exception
public void setProperty(String key, Serializable value) throws Exception
Exception
public void setPropertyValue(String key, Serializable value) throws Exception
Exception
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 © 2013 Nuxeo SA. All Rights Reserved.