@Name(value="documentContentViewActions") @Scope(value=CONVERSATION) public class DocumentContentViewActions extends Object implements Serializable
Constructor and Description |
---|
DocumentContentViewActions() |
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean hasContentViewSupport(DocumentModel doc, String category) throws ClientException
Also fetches content view headers defined on a document type
ClientException
public Map<String,List<ContentViewHeader>> getAvailableContentViewsForDocument(DocumentModel doc) throws ClientException
ClientException
public List<ContentViewHeader> getAvailableContentViewsForDocument(DocumentModel doc, String category) throws ClientException
ClientException
public Map<String,List<ContentViewHeader>> getAvailableContentViewsForCurrentDocument() throws ClientException
ClientException
public List<ContentViewHeader> getAvailableContentViewsForCurrentDocument(String category) throws ClientException
ClientException
public List<ContentViewHeader> getLocalConfiguredContentViews(DocumentModel doc)
public Map<String,List<ContentViewHeader>> getExportContentViewsForDocument(DocumentModel doc) throws ClientException
ClientException
public Map<String,List<ContentViewHeader>> getExportContentViewsForCurrentDocument() throws ClientException
ClientException
public List<ContentViewHeader> getExportContentViewsForCurrentDocument(String category) throws ClientException
ClientException
@Observer(value="userAllDocumentTypesSelectionChanged", create=false) @BypassInterceptors public void documentChanged()
Copyright © 2011 Nuxeo SA. All Rights Reserved.