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:
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

Constructor Summary
DocumentContentViewActions()
           
 
Method Summary
 void documentChanged()
           
 java.util.List<ContentViewHeader> getAvailableContentViewsForCurrentDocument(java.lang.String category)
           
 java.util.List<ContentViewHeader> getAvailableContentViewsForDocument(DocumentModel doc, java.lang.String category)
           
 boolean hasContentViewSupport(DocumentModel doc, java.lang.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,
                                     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()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.