org.nuxeo.ecm.webapp.contentbrowser
Class DocumentContentViewActions
java.lang.Object
org.nuxeo.ecm.webapp.contentbrowser.DocumentContentViewActions
- All Implemented Interfaces:
- Serializable
@Name(value="documentContentViewActions")
@Scope(value=CONVERSATION)
public class DocumentContentViewActions
- extends Object
- implements Serializable
Handles available content views defined on a document type per category
- Since:
- 5.4
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
DocumentContentViewActions
public DocumentContentViewActions()
hasContentViewSupport
public boolean hasContentViewSupport(DocumentModel doc,
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 Map<String,List<ContentViewHeader>> getAvailableContentViewsForDocument(DocumentModel doc)
throws ClientException
- Throws:
ClientException
getAvailableContentViewsForDocument
public List<ContentViewHeader> getAvailableContentViewsForDocument(DocumentModel doc,
String category)
throws ClientException
- Throws:
ClientException
getAvailableContentViewsForCurrentDocument
public Map<String,List<ContentViewHeader>> getAvailableContentViewsForCurrentDocument()
throws ClientException
- Throws:
ClientException
getAvailableContentViewsForCurrentDocument
public List<ContentViewHeader> getAvailableContentViewsForCurrentDocument(String category)
throws ClientException
- Throws:
ClientException
getLocalConfiguredContentViews
public List<ContentViewHeader> getLocalConfiguredContentViews(DocumentModel doc)
getExportContentViewsForDocument
public Map<String,List<ContentViewHeader>> getExportContentViewsForDocument(DocumentModel doc)
throws ClientException
- Throws:
ClientException
getExportContentViewsForCurrentDocument
public Map<String,List<ContentViewHeader>> getExportContentViewsForCurrentDocument()
throws ClientException
- Throws:
ClientException
getExportContentViewsForCurrentDocument
public List<ContentViewHeader> getExportContentViewsForCurrentDocument(String category)
throws ClientException
- Throws:
ClientException
documentChanged
@Observer(value="userAllDocumentTypesSelectionChanged",
create=false)
@BypassInterceptors
public void documentChanged()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.