com.atlassian.gadgets.dashboard.internal.impl
Class DashboardRepositoryImpl
java.lang.Object
com.atlassian.gadgets.dashboard.internal.impl.DashboardRepositoryImpl
- All Implemented Interfaces:
- DashboardRepository
public class DashboardRepositoryImpl
- extends Object
- implements DashboardRepository
Default implementation of DashboardRepository
which delegates
retrieval and save operations to a DashboardStateStore
.
Method Summary |
com.atlassian.gadgets.dashboard.DashboardId |
findDashboardByGadgetId(com.atlassian.gadgets.GadgetId gadgetId)
|
Dashboard |
get(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
|
void |
save(Dashboard dashboard)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DashboardRepositoryImpl
public DashboardRepositoryImpl(TransactionalDashboardStateStoreImpl stateStore,
StateConverter converter)
- Constructor.
- Parameters:
stateStore
- the DashboardStateStore
to use for state storageconverter
- the StateConverter
for translating states to dashboards
get
public Dashboard get(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
throws com.atlassian.gadgets.dashboard.DashboardNotFoundException
- Specified by:
get
in interface DashboardRepository
- Throws:
com.atlassian.gadgets.dashboard.DashboardNotFoundException
save
public void save(Dashboard dashboard)
- Specified by:
save
in interface DashboardRepository
findDashboardByGadgetId
public com.atlassian.gadgets.dashboard.DashboardId findDashboardByGadgetId(com.atlassian.gadgets.GadgetId gadgetId)
throws com.atlassian.gadgets.dashboard.DashboardNotFoundException
- Specified by:
findDashboardByGadgetId
in interface DashboardRepository
- Throws:
com.atlassian.gadgets.dashboard.DashboardNotFoundException
Copyright © 2011 Atlassian. All Rights Reserved.