Class DocumentWrapper
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Serializable>
Wrap a
DocumentModel to expose in a pretty way more information to mvel scripts.- Author:
- Bogdan Stefanescu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclear()booleancontainsKey(Object key) property map implementationbooleancontainsValue(Object value) The behavior of this method was changed -> it is checking if an xpath has a value attached.entrySet()getDoc()getId()getName()getPath()getProperty(String key) getPropertyValue(String key) getRef()String[]getTitle()getType()booleanbooleanbooleanbooleanisEmpty()booleanisFolder()booleanbooleanisLocked()booleanisProxy()booleanbooleanbooleankeySet()put(String key, Serializable value) voidputAll(Map<? extends String, ? extends Serializable> m) booleanremoveFacet(String facet) resolvePath(String relative) resolvePathAsRef(String relative) voidsetProperty(String key, Serializable value) voidsetPropertyValue(String key, Serializable value) intsize()values()Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, newHashMap, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
session
-
doc
-
-
Constructor Details
-
DocumentWrapper
-
-
Method Details
-
getDoc
-
getSession
-
getParent
-
getParent
-
getWorkspace
-
getDomain
-
getTitle
-
getPath
-
resolvePath
-
getRef
- Returns:
- the document ref
- Since:
- 5.6
-
resolvePathAsRef
-
getDescription
-
hasFacet
-
hasSchema
-
addFacet
-
removeFacet
-
getType
-
getDocumentType
-
getLifeCycle
-
isLocked
public boolean isLocked() -
isFolder
public boolean isFolder() -
isImmutable
public boolean isImmutable() -
isProxy
public boolean isProxy() -
isVersion
public boolean isVersion() -
isDownloadable
public boolean isDownloadable() -
isVersionable
public boolean isVersionable() -
isTrashed
public boolean isTrashed()- Since:
- 2023.0
-
getId
-
getName
-
getSchemas
-
getFacets
-
getProperty
-
getPropertyValue
- Since:
- 5.7.3 Alias for #getProperty.
-
setProperty
-
setPropertyValue
- Since:
- 5.7.3 Alias for #setProperty.
-
getVersionLabel
-
containsKey
property map implementation- Specified by:
containsKeyin interfaceMap<String,Serializable> - Overrides:
containsKeyin classHashMap<String,Serializable>
-
containsValue
The behavior of this method was changed -> it is checking if an xpath has a value attached.- Specified by:
containsValuein interfaceMap<String,Serializable> - Overrides:
containsValuein classHashMap<String,Serializable>
-
get
- Specified by:
getin interfaceMap<String,Serializable> - Overrides:
getin classHashMap<String,Serializable>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<String,Serializable> - Overrides:
isEmptyin classHashMap<String,Serializable>
-
size
public int size()- Specified by:
sizein interfaceMap<String,Serializable> - Overrides:
sizein classHashMap<String,Serializable>
-
keySet
- Specified by:
keySetin interfaceMap<String,Serializable> - Overrides:
keySetin classHashMap<String,Serializable>
-
values
- Specified by:
valuesin interfaceMap<String,Serializable> - Overrides:
valuesin classHashMap<String,Serializable>
-
entrySet
- Specified by:
entrySetin interfaceMap<String,Serializable> - Overrides:
entrySetin classHashMap<String,Serializable>
-
put
- Specified by:
putin interfaceMap<String,Serializable> - Overrides:
putin classHashMap<String,Serializable>
-
putAll
- Specified by:
putAllin interfaceMap<String,Serializable> - Overrides:
putAllin classHashMap<String,Serializable>
-
remove
- Specified by:
removein interfaceMap<String,Serializable> - Overrides:
removein classHashMap<String,Serializable>
-
clear
public void clear()- Specified by:
clearin interfaceMap<String,Serializable> - Overrides:
clearin classHashMap<String,Serializable>
-