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 extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
clear()
boolean
containsKey
(Object key) property map implementationboolean
containsValue
(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()
boolean
boolean
boolean
boolean
isEmpty()
boolean
isFolder()
boolean
boolean
isLocked()
boolean
isProxy()
boolean
boolean
boolean
keySet()
put
(String key, Serializable value) void
putAll
(Map<? extends String, ? extends Serializable> m) boolean
removeFacet
(String facet) resolvePath
(String relative) resolvePathAsRef
(String relative) void
setProperty
(String key, Serializable value) void
setPropertyValue
(String key, Serializable value) int
size()
values()
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods 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:
containsKey
in interfaceMap<String,
Serializable> - Overrides:
containsKey
in classHashMap<String,
Serializable>
-
containsValue
The behavior of this method was changed -> it is checking if an xpath has a value attached.- Specified by:
containsValue
in interfaceMap<String,
Serializable> - Overrides:
containsValue
in classHashMap<String,
Serializable>
-
get
- Specified by:
get
in interfaceMap<String,
Serializable> - Overrides:
get
in classHashMap<String,
Serializable>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<String,
Serializable> - Overrides:
isEmpty
in classHashMap<String,
Serializable>
-
size
public int size()- Specified by:
size
in interfaceMap<String,
Serializable> - Overrides:
size
in classHashMap<String,
Serializable>
-
keySet
- Specified by:
keySet
in interfaceMap<String,
Serializable> - Overrides:
keySet
in classHashMap<String,
Serializable>
-
values
- Specified by:
values
in interfaceMap<String,
Serializable> - Overrides:
values
in classHashMap<String,
Serializable>
-
entrySet
- Specified by:
entrySet
in interfaceMap<String,
Serializable> - Overrides:
entrySet
in classHashMap<String,
Serializable>
-
put
- Specified by:
put
in interfaceMap<String,
Serializable> - Overrides:
put
in classHashMap<String,
Serializable>
-
putAll
- Specified by:
putAll
in interfaceMap<String,
Serializable> - Overrides:
putAll
in classHashMap<String,
Serializable>
-
remove
- Specified by:
remove
in interfaceMap<String,
Serializable> - Overrides:
remove
in classHashMap<String,
Serializable>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<String,
Serializable> - Overrides:
clear
in classHashMap<String,
Serializable>
-