Class DefaultDocumentView
java.lang.Object
org.nuxeo.ecm.platform.rendering.api.DefaultDocumentView
- All Implemented Interfaces:
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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
static final DefaultDocumentView
The singleton instance that should be used by clients.protected static final DefaultDocumentView.Field
protected final Map<String,
DefaultDocumentView.Field> protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
Deprecated.since 11.1protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
static final Object
protected static final DefaultDocumentView.Field
protected static final DefaultDocumentView.Field
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
addFields
(Collection<DefaultDocumentView.Field> fields) get
(DocumentModel doc, String name) protected void
boolean
isEmpty()
keys
(DocumentModel doc) final void
removeField
(String name) int
size
(DocumentModel doc)
-
Field Details
-
UNKNOWN
-
fields
-
SESSION
-
ID
-
NAME
-
PATH
-
TYPE
-
SCHEMAS
-
FACETS
-
STATE
-
LOCKED
-
LIFE_CYCLE_STATE
-
LIFE_CYCLE_POLICY
-
ALLOWED_STATE_TRANSITIONS
-
IS_FOLDER
-
TITLE
-
AUTHOR
-
CREATED
-
MODIFIED
-
CONTENT
-
SID
Deprecated.since 11.1 -
REPOSITORY
-
PARENT
-
CHILDREN
-
REF
-
VERSIONS
-
PROXIES
-
VERSION_LABEL
-
SOURCE_ID
-
DEFAULT
The singleton instance that should be used by clients. Warn that this static field must be defined at the end of the class after any other field class since it will try to register these fields (otherwise fields will not be defined yet at the time of the initialization of that static member
-
-
Constructor Details
-
DefaultDocumentView
public DefaultDocumentView() -
DefaultDocumentView
-
-
Method Details
-
initialize
protected void initialize() -
addField
-
addFields
-
removeField
-
getField
-
get
- Specified by:
get
in interfaceDocumentView
- Throws:
PropertyException
-
keys
- Specified by:
keys
in interfaceDocumentView
-
getFields
-
isEmpty
public boolean isEmpty() -
size
-