org.nuxeo.ecm.webapp.contentbrowser
Class DocumentContentViewActions
java.lang.Object
org.nuxeo.ecm.webapp.contentbrowser.DocumentContentViewActions
- All Implemented Interfaces:
- java.io.Serializable
@Name(value="documentContentViewActions")
@Scope(value=CONVERSATION)
public class DocumentContentViewActions
- extends java.lang.Object
- implements java.io.Serializable
Handles available content views defined on a document type per category
- Since:
- 5.4
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentContentViewActions
public DocumentContentViewActions()
hasContentViewSupport
public boolean hasContentViewSupport(DocumentModel doc,
java.lang.String category)
throws ClientException
- Returns true if content views are defined on given document for given
category.
Also fetches content view headers defined on a document type
- Throws:
ClientException
getAvailableContentViewsForDocument
public java.util.List<ContentViewHeader> getAvailableContentViewsForDocument(DocumentModel doc,
java.lang.String category)
throws ClientException
- Throws:
ClientException
getAvailableContentViewsForCurrentDocument
public java.util.List<ContentViewHeader> getAvailableContentViewsForCurrentDocument(java.lang.String category)
throws ClientException
- Throws:
ClientException
documentChanged
@Observer(value="userAllDocumentTypesSelectionChanged",
create=false)
@BypassInterceptors
public void documentChanged()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.