Class JiraDashboardStateStoreManager

java.lang.Object
com.atlassian.jira.dashboard.JiraDashboardStateStoreManager
All Implemented Interfaces:
com.atlassian.gadgets.dashboard.spi.DashboardStateStore

public class JiraDashboardStateStoreManager extends Object implements com.atlassian.gadgets.dashboard.spi.DashboardStateStore
Provides CRUD operations for dashboards. Uses the existing PortalPageStore and PortletConfigurationStore implementations. Note that this class does not need to do any permission checks, since this is the responsibility of the JiraPermissionService.
Since:
v4.0
  • Constructor Details

  • Method Details

    • retrieve

      public com.atlassian.gadgets.dashboard.DashboardState retrieve(com.atlassian.gadgets.dashboard.DashboardId dashboardId) throws com.atlassian.gadgets.dashboard.DashboardNotFoundException, com.atlassian.gadgets.dashboard.spi.DashboardStateStoreException
      Specified by:
      retrieve in interface com.atlassian.gadgets.dashboard.spi.DashboardStateStore
      Throws:
      com.atlassian.gadgets.dashboard.DashboardNotFoundException
      com.atlassian.gadgets.dashboard.spi.DashboardStateStoreException
    • update

      public com.atlassian.gadgets.dashboard.DashboardState update(com.atlassian.gadgets.dashboard.DashboardState dashboardState, Iterable<com.atlassian.gadgets.dashboard.spi.changes.DashboardChange> dashboardChanges) throws com.atlassian.gadgets.dashboard.spi.DashboardStateStoreException
      Specified by:
      update in interface com.atlassian.gadgets.dashboard.spi.DashboardStateStore
      Throws:
      com.atlassian.gadgets.dashboard.spi.DashboardStateStoreException
    • remove

      public void remove(com.atlassian.gadgets.dashboard.DashboardId dashboardId) throws com.atlassian.gadgets.dashboard.spi.DashboardStateStoreException
      Specified by:
      remove in interface com.atlassian.gadgets.dashboard.spi.DashboardStateStore
      Throws:
      com.atlassian.gadgets.dashboard.spi.DashboardStateStoreException
    • findDashboardWithGadget

      public com.atlassian.gadgets.dashboard.DashboardState findDashboardWithGadget(com.atlassian.gadgets.GadgetId gadgetId) throws com.atlassian.gadgets.dashboard.DashboardNotFoundException
      Specified by:
      findDashboardWithGadget in interface com.atlassian.gadgets.dashboard.spi.DashboardStateStore
      Throws:
      com.atlassian.gadgets.dashboard.DashboardNotFoundException