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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldstatic final DefaultDocumentViewThe singleton instance that should be used by clients.protected static final DefaultDocumentView.Fieldprotected final Map<String, DefaultDocumentView.Field> protected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.FieldDeprecated.since 11.1protected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Fieldstatic final Objectprotected static final DefaultDocumentView.Fieldprotected static final DefaultDocumentView.Field -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidaddFields(Collection<DefaultDocumentView.Field> fields) get(DocumentModel doc, String name) protected voidbooleanisEmpty()keys(DocumentModel doc) final voidremoveField(String name) intsize(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:
getin interfaceDocumentView- Throws:
PropertyException
-
keys
- Specified by:
keysin interfaceDocumentView
-
getFields
-
isEmpty
public boolean isEmpty() -
size
-