Package org.nuxeo.ecm.platform.rendering
Interface RenderingContext
- All Superinterfaces:
Adaptable
,Map<String,
,Object> Serializable
- All Known Implementing Classes:
DefaultRenderingContext
,DocumentRenderingContext
Base class for rendering contexts.
The org.nuxeo.runtime.model.Adaptable interface may be used to add adapting capabilities to context objects. This may be used to retrieve adapters to other type of contexts (like the freemarker one).
- Author:
- Dragos Mihalache
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(RenderingEngine engine) Either or not this rendering context accepts the given engine.Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
Methods 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
-
Method Details
-
accept
Either or not this rendering context accepts the given engine.If the engione is not acepted it will be ignored by the rendering service when processing this context
- Parameters:
engine
- the engine to test- Returns:
- true if the engine is eligible to process this context, false otherwise
-