Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.rendering
Interface RenderingContext

All Superinterfaces:
Adaptable, Map<String,Object>, Serializable
All Known Implementing Classes:
DefaultRenderingContext, DocumentRenderingContext

public interface RenderingContext
extends Map<String,Object>, Adaptable, Serializable

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
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 boolean accept(RenderingEngine engine)
          Either or not this rendering context accepts the given engine.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
 

Method Detail

accept

boolean accept(RenderingEngine engine)
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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.