Class DefaultDocumentView

java.lang.Object
org.nuxeo.ecm.platform.rendering.api.DefaultDocumentView
All Implemented Interfaces:
DocumentView

public class DefaultDocumentView extends Object implements DocumentView
Base class to build views for Document oriented contexts (contexts that are bound to a document).

Note that this class cannot be used with contexts for which the RenderingContext#getDocument() method is returning null.

This implementation ensure that the context argument is never used so it can be used outside the scope of a rendering context to get a view over the document.

Author:
Bogdan Stefanescu