Package com.atlassian.gadgets.dashboard
This package contains the main APIs for interacting with dashboards and gadgets. Dashboards are represented by
immutable state objects, DashboardStates.
Gadgets are also represented by immutable state objects, GadgetStates.
A few useful services are defined by this api and are provided by the dashboard-plugin. Among them is
DashboardService
To integrate the dashboards plugin(s) into a host application, an integrator needs to implement the interfaces
defined in the com.atlassian.gadgets.spi package.
A note about serialization: GadgetId, DashboardId,
GadgetState and DashboardState
all implement the Serializable marker interface. However, Java serialization is not meant to be used as way of
doing long term persistence of these objects. They implement the Serializable interface purely for
distribution among remote systems that might be sharing a cache or need to transfer these objects for other reasons.
Again, it is not meant to be used as a means of persisting these objects between JVM restarts.
-
ClassDescriptionThe possible colors that can be used to customize dashboards and gadgets.Representation of the identifier for a particular dashboard.Detailed information that can be used to render the dashboard item.Service used to get representations of dashboard items.Context in which the dashboard item is rendered.Thrown if the dashboard identified by the
DashboardIddoes not exist.Service that saves or fetches theDashboardState, after checking to make sure that the user has access to the dashboard.An immutable representation of a dashboard.A builder that allows theLayoutor the columns of theDashboardStateunder construction to be set.There are a predetermined number of columns that a dashboard can contain, andColumnIndexis the enumeration of those columns.A builder that allows you to set the title of theDashboardStateobject under construction.Represents a Dashboard TabDashboards can be laid out in multiple ways: with a single column (A), with two columns of equal size (AA), with two columns where one is smaller and the other is larger (AB), etc.Thrown if a user tries a non-permissible operation on a dashboard or gadget.