org.nuxeo.ecm.platform.rendering.impl
Class DocumentRenderingContext
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
org.nuxeo.ecm.platform.rendering.impl.DefaultRenderingContext
org.nuxeo.ecm.platform.rendering.impl.DocumentRenderingContext
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>, RenderingContext, Adaptable
public class DocumentRenderingContext
- extends DefaultRenderingContext
Abstract RenderingContext subclass that adds capabilities of storing a
DocumentModel and retrieve RenderingConfig associated with the current set
DocumentModel.
- Author:
- Dragos Mihalache
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
CTX_PARAM_DOCUMENT
public static final java.lang.String CTX_PARAM_DOCUMENT
- See Also:
- Constant Field Values
DocumentRenderingContext
public DocumentRenderingContext()
getAdapter
public <T> T getAdapter(java.lang.Class<T> adapter)
- Description copied from interface:
Adaptable
- Returns an object which is an instance of the given class
associated with this object. Returns
null
if
no such object can be found.
- Specified by:
getAdapter
in interface Adaptable
- Overrides:
getAdapter
in class DefaultRenderingContext
- Parameters:
adapter
- the adapter class to look up
- Returns:
- a object castable to the given class,
or
null
if this object does not
have an adapter for the given class
setDocument
public void setDocument(DocumentModel doc)
getDocument
public DocumentModel getDocument()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.