Interface DashboardTabViewFactory
public interface DashboardTabViewFactory
A factory which provides a way to create
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.-
Method Summary
Modifier and TypeMethodDescriptioncreateDashboardView(Iterable<DashboardTab> tabs, DashboardState selectedTabDashboardState, String username, int maxGadgets, GadgetRequestContext gadgetRequestContext) Returns aViewComponentthat will render theDashboardStateandDashboardTabs customizing the view based on the permissions the user has to view/edit the dashboard and the specifiedLocale.
-
Method Details
-
createDashboardView
ViewComponent createDashboardView(Iterable<DashboardTab> tabs, DashboardState selectedTabDashboardState, @Nullable String username, int maxGadgets, GadgetRequestContext gadgetRequestContext) Returns a
ViewComponentthat will render theDashboardStateandDashboardTabs customizing the view based on the permissions the user has to view/edit the dashboard and the specifiedLocale.
This can be used by host applications to place dashboards in a place of their choosing, including tabs to navigate to other dashboards.
- Parameters:
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 theViewComponentusername- user that is viewing the dashboard and whose permissions will be checkedmaxGadgets- the (application-wide) maximum number of supported gadgetsgadgetRequestContext- the context of this request- Returns:
- a
ViewComponentthat will render theDashboardState
-