Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.contentbrowser
Class DocumentContentViewActions

java.lang.Object
  extended by 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

Constructor Summary
DocumentContentViewActions()
           
 
Method Summary
 void documentChanged()
           
 Map<String,List<ContentViewHeader>> getAvailableContentViewsForCurrentDocument()
           
 List<ContentViewHeader> getAvailableContentViewsForCurrentDocument(String category)
           
 Map<String,List<ContentViewHeader>> getAvailableContentViewsForDocument(DocumentModel doc)
           
 List<ContentViewHeader> getAvailableContentViewsForDocument(DocumentModel doc, String category)
           
 Map<String,List<ContentViewHeader>> getExportContentViewsForCurrentDocument()
           
 List<ContentViewHeader> getExportContentViewsForCurrentDocument(String category)
           
 Map<String,List<ContentViewHeader>> getExportContentViewsForDocument(DocumentModel doc)
           
 List<ContentViewHeader> getLocalConfiguredContentViews(DocumentModel doc)
           
 boolean hasContentViewSupport(DocumentModel doc, String category)
          Returns true if content views are defined on given document for given category.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentContentViewActions

public DocumentContentViewActions()
Method Detail

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()

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.