@Name(value="mainTabsActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class MainTabsActions extends Object implements Serializable
Maintains a Map of tab id -> contextual document.
Modifier and Type | Field and Description |
---|---|
protected ActionManager |
actionManager |
static String |
DEFAULT_VIEW |
static String |
DOCUMENT_MANAGEMENT_ACTION
Deprecated.
since 5.5, use
WebActions.DOCUMENTS_MAIN_TAB_ID instead |
protected CoreSession |
documentManager |
protected Map<String,DocumentModel> |
documentsByMainTabs |
static String |
MAIN_TAB_ID_PARAMETER
Deprecated.
since 5.5, use
WebActions.MAIN_TAB_ID_PARAMETER instead |
static String |
MAIN_TABS_CATEGORY
Deprecated.
since 5.5, use
WebActions.MAIN_TABS_CATEGORY instead |
protected NavigationContext |
navigationContext |
protected RepositoryManager |
repositoryManager |
static String |
TAB_IDS_PARAMETER
Deprecated.
since 5.5, use
WebActions.TAB_IDS_PARAMETER instead |
protected WebActions |
webActions |
Constructor and Description |
---|
MainTabsActions() |
Modifier and Type | Method and Description |
---|---|
protected String |
getCurrentMainTabFromRequest() |
DocumentModel |
getDocumentFor(String mainTabId) |
DocumentModel |
getDocumentFor(String mainTabId,
DocumentModel defaultDocument) |
String |
getPatternFor(String mainTabId) |
String |
getViewFor(Action mainTabAction) |
String |
getViewFor(String mainTabId) |
boolean |
isOnMainTab(String mainTabId) |
void |
setDocumentFor(String mainTabId,
DocumentModel doc)
Set the document used for a given
mainTabId . |
protected boolean |
shouldHandleRequest()
Only handle non POST requests
|
void |
updateContextualDocument() |
@Deprecated public static final String MAIN_TABS_CATEGORY
WebActions.MAIN_TABS_CATEGORY
instead@Deprecated public static final String DOCUMENT_MANAGEMENT_ACTION
WebActions.DOCUMENTS_MAIN_TAB_ID
instead@Deprecated public static final String TAB_IDS_PARAMETER
WebActions.TAB_IDS_PARAMETER
instead@Deprecated public static final String MAIN_TAB_ID_PARAMETER
WebActions.MAIN_TAB_ID_PARAMETER
insteadpublic static final String DEFAULT_VIEW
@In(create=true) protected transient RepositoryManager repositoryManager
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true, required=false) protected transient NavigationContext navigationContext
@In(create=true) protected transient WebActions webActions
@In(create=true, required=false) protected transient ActionManager actionManager
protected Map<String,DocumentModel> documentsByMainTabs
public MainTabsActions()
@Observer(value="navigateToDocument") public void updateContextualDocument()
protected boolean shouldHandleRequest()
protected String getCurrentMainTabFromRequest()
public void setDocumentFor(String mainTabId, DocumentModel doc)
mainTabId
.public DocumentModel getDocumentFor(String mainTabId)
public DocumentModel getDocumentFor(String mainTabId, DocumentModel defaultDocument)
public String getViewFor(Action mainTabAction)
public String getViewFor(String mainTabId)
public String getPatternFor(String mainTabId)
public boolean isOnMainTab(String mainTabId)
Copyright © 2016 Nuxeo SA. All rights reserved.