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 ClientException
ClientException
public DocumentWrapper getParent(String type) throws ClientException
ClientException
public DocumentWrapper getWorkspace() throws ClientException
ClientException
public DocumentWrapper getDomain() throws ClientException
ClientException
public String getTitle() throws ClientException
ClientException
public String getPath()
public DocumentRef getRef()
public DocumentRef resolvePathAsRef(String relative)
public String getDescription() throws ClientException
ClientException
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 String getLifeCycle() throws ClientException
ClientException
public boolean isLocked()
public boolean isFolder()
public boolean isImmutable()
public boolean isProxy()
public boolean isVersion()
public boolean isDownloadable() throws ClientException
ClientException
public boolean isVersionable()
public String getId()
public String getName()
public String[] getSchemas()
public Serializable getProperty(String key) throws ClientException
ClientException
public Serializable getPropertyValue(String key) throws ClientException
ClientException
public void setProperty(String key, Serializable value) throws ClientException
ClientException
public void setPropertyValue(String key, Serializable value) throws ClientException
ClientException
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.