com.atlassian.jira.dashboard
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
Method Summary |
com.atlassian.gadgets.dashboard.DashboardState |
findDashboardWithGadget(com.atlassian.gadgets.GadgetId gadgetId)
|
void |
remove(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
|
com.atlassian.gadgets.dashboard.DashboardState |
retrieve(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
|
com.atlassian.gadgets.dashboard.DashboardState |
update(com.atlassian.gadgets.dashboard.DashboardState dashboardState,
Iterable<com.atlassian.gadgets.dashboard.spi.changes.DashboardChange> dashboardChangeIterable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JiraDashboardStateStoreManager
public JiraDashboardStateStoreManager(PortalPageStore portalPageStore,
PortletConfigurationStore portletConfigurationStore,
PortalPageManager portalPageManager)
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> dashboardChangeIterable)
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
Copyright © 2002-2014 Atlassian. All Rights Reserved.