Class DocumentRenderingContext
java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
org.nuxeo.ecm.platform.rendering.impl.DefaultRenderingContext
org.nuxeo.ecm.platform.rendering.impl.DocumentRenderingContext
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> RenderingContext,Adaptable
Abstract RenderingContext subclass that adds capabilities of storing a DocumentModel and retrieve RenderingConfig
associated with the current set DocumentModel.
- Author:
- Dragos Mihalache
- 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 TypeMethodDescription<T> TgetAdapter(Class<T> adapter) Returns an object which is an instance of the given class associated with this object.voidsetDocument(DocumentModel doc) Methods inherited from class org.nuxeo.ecm.platform.rendering.impl.DefaultRenderingContext
acceptMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
CTX_PARAM_DOCUMENT
- See Also:
-
-
Constructor Details
-
DocumentRenderingContext
public DocumentRenderingContext()
-
-
Method Details
-
getAdapter
Description copied from interface:AdaptableReturns an object which is an instance of the given class associated with this object. Returnsnullif no such object can be found.- Specified by:
getAdapterin interfaceAdaptable- Overrides:
getAdapterin classDefaultRenderingContext- Parameters:
adapter- the adapter class to look up- Returns:
- a object castable to the given class, or
nullif this object does not have an adapter for the given class
-
setDocument
-
getDocument
-