Uses of Class
com.atlassian.gadgets.dashboard.DashboardState
Packages that use DashboardState
Package
Description
This package contains the main APIs for interacting with dashboards and gadgets.
-
Uses of DashboardState in com.atlassian.gadgets.dashboard
Methods in com.atlassian.gadgets.dashboard that return DashboardStateModifier and TypeMethodDescriptionDashboardState.appendGadgetToColumn(GadgetState gadgetState, DashboardState.ColumnIndex index) Deprecated.DashboardState.appendItemToColumn(DashboardItemState itemState, DashboardState.ColumnIndex index) Returns a new DashboardState built with the same data asthis, except that the column with indexindexhas had a new gadget added to its bottomDashboardState.Builder.build()Returns the final constructedDashboardStateDashboardService.get(DashboardId id, String username) Fetch theDashboardStateif the user has permission.DashboardState.prependGadgetToColumn(GadgetState dashboardItemState, DashboardState.ColumnIndex index) Deprecated.DashboardState.prependItemToColumn(DashboardItemState itemState, DashboardState.ColumnIndex index) Returns a new DashboardState built with the same data asthis, except that the column with indexindexhas had a new gadget added to its topDashboardService.save(DashboardState state, String username) Save theDashboardStateif the user has permission.Methods in com.atlassian.gadgets.dashboard that return types with arguments of type DashboardStateModifier and TypeMethodDescriptionio.atlassian.fugue.Option<DashboardState>DashboardService.getDashboardForGadget(GadgetId gadgetId, String username) Gets dashboard state which contains the specified gadgetMethods in com.atlassian.gadgets.dashboard with parameters of type DashboardStateModifier and TypeMethodDescriptionstatic DashboardState.BuilderDashboardState.dashboard(DashboardState state) Factory method which allows you to create a newDashboardStateobject based on an existingDashboardState.DashboardService.save(DashboardState state, String username) Save theDashboardStateif the user has permission. -
Uses of DashboardState in com.atlassian.gadgets.dashboard.view
Methods in com.atlassian.gadgets.dashboard.view with parameters of type DashboardStateModifier and TypeMethodDescriptionDashboardTabViewFactory.createDashboardView(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.
prependItemToColumn(com.atlassian.gadgets.DashboardItemState, com.atlassian.gadgets.dashboard.DashboardState.ColumnIndex)instead.