@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 |
---|---|
static String |
DEFAULT_VIEW |
static String |
DOCUMENT_MANAGEMENT_ACTION
Deprecated.
since 5.5, use
WebActions.DOCUMENTS_MAIN_TAB_ID
instead |
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 |
static String |
TAB_IDS_PARAMETER
Deprecated.
since 5.5, use
WebActions.TAB_IDS_PARAMETER
instead |
Constructor and Description |
---|
MainTabsActions() |
Modifier and Type | Method and Description |
---|---|
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 |
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
@Observer(value="navigateToDocument") public void updateContextualDocument()
public DocumentModel getDocumentFor(String mainTabId) throws ClientException
ClientException
public DocumentModel getDocumentFor(String mainTabId, DocumentModel defaultDocument) throws ClientException
ClientException
public String getViewFor(Action mainTabAction) throws ClientException
ClientException
public String getViewFor(String mainTabId) throws ClientException
ClientException
public String getPatternFor(String mainTabId) throws ClientException
ClientException
public boolean isOnMainTab(String mainTabId)
Copyright © 2011 Nuxeo SA. All Rights Reserved.