public interface DashboardTabViewFactory
ViewComponents for dashboards displaying other dashboards available
as tabs. A host application should use this for embedding dashboards in the desired locations by creating a view and
then calling the ViewComponent.writeTo(java.io.Writer) method.| Modifier and Type | Method and Description |
|---|---|
ViewComponent |
createDashboardView(Iterable<DashboardTab> tabs,
DashboardState selectedTabDashboardState,
String username,
int maxGadgets,
GadgetRequestContext gadgetRequestContext)
Returns a
ViewComponent that will render the DashboardState and DashboardTabs
customizing the view based on the permissions the user has to view/edit the dashboard and the
specified Locale. |
ViewComponent createDashboardView(Iterable<DashboardTab> tabs, DashboardState selectedTabDashboardState, @Nullable String username, int maxGadgets, GadgetRequestContext gadgetRequestContext)
Returns a ViewComponent that will render the DashboardState and DashboardTabs
customizing the view based on the permissions the user has to view/edit the dashboard and the
specified Locale.
This can be used by host applications to place dashboards in a place of their choosing, including tabs to navigate to other dashboards.
tabs - a list of dashboards a particular user can see. This can be empty if no tabs are desired.selectedTabDashboardState - state of the dashboard to be rendered by the ViewComponentusername - user that is viewing the dashboard and whose permissions will be checkedmaxGadgets - the (application-wide) maximum number of supported gadgetsgadgetRequestContext - the context of this requestViewComponent that will render the DashboardStateCopyright © 2024 Atlassian. All rights reserved.