@Name(value="documentContentViewActions") @Scope(value=CONVERSATION) public class DocumentContentViewActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected ActionContextProvider |
actionContextProvider |
protected ContentViewService |
contentViewService |
protected Map<String,List<ContentViewHeader>> |
currentAvailableContentViews |
protected Map<String,List<ContentViewHeader>> |
currentExportContentViews |
protected NavigationContext |
navigationContext |
protected Map<String,Map<String,List<ContentViewHeader>>> |
typeToContentView
Map caching content views defined on a given document type
|
protected Map<String,Map<String,List<ContentViewHeader>>> |
typeToExportContentView
Map caching content views shown in export defined on a given document type
|
protected WebActions |
webActions |
Constructor and Description |
---|
DocumentContentViewActions() |
@In(create=true, required=false) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient WebActions webActions
@In(create=true, required=false) protected transient ActionContextProvider actionContextProvider
@In(create=true) protected ContentViewService contentViewService
protected Map<String,Map<String,List<ContentViewHeader>>> typeToContentView
protected Map<String,List<ContentViewHeader>> currentAvailableContentViews
protected Map<String,Map<String,List<ContentViewHeader>>> typeToExportContentView
protected Map<String,List<ContentViewHeader>> currentExportContentViews
public DocumentContentViewActions()
protected Map<String,List<ContentViewHeader>> getContentViewHeaders(TypeInfo typeInfo, boolean export)
protected void retrieveContentViewHeaders(DocumentModel doc)
protected void retrieveExportContentViewHeaders(DocumentModel doc)
public boolean hasContentViewSupport(DocumentModel doc, String category)
Also fetches content view headers defined on a document type
public Map<String,List<ContentViewHeader>> getAvailableContentViewsForDocument(DocumentModel doc)
public List<ContentViewHeader> getAvailableContentViewsForDocument(DocumentModel doc, String category)
public Map<String,List<ContentViewHeader>> getAvailableContentViewsForCurrentDocument()
public List<ContentViewHeader> getAvailableContentViewsForCurrentDocument(String category)
public List<ContentViewHeader> getLocalConfiguredContentViews(DocumentModel doc)
public Map<String,List<ContentViewHeader>> getExportContentViewsForDocument(DocumentModel doc)
public Map<String,List<ContentViewHeader>> getExportContentViewsForCurrentDocument()
public List<ContentViewHeader> getExportContentViewsForCurrentDocument(String category)
@Observer(value="userAllDocumentTypesSelectionChanged", create=false) @BypassInterceptors public void documentChanged()
@Observer(value="flush") @BypassInterceptors public void onHotReloadFlush()
EventNames.FLUSH_EVENT
, triggered by hot reload when dev mode is set.public List<Action> getSelectionActions(String category, ContentView contentView, List<Object> selectedEntries)
ActionContext
used for resolution.category
- contentView
- selectedEntries
- Copyright © 2018 Nuxeo. All rights reserved.