com.atlassian.gadgets.dashboard.internal.impl
Class TransactionalDashboardStateStoreImpl
java.lang.Object
com.atlassian.gadgets.dashboard.internal.impl.TransactionalDashboardStateStoreImpl
- All Implemented Interfaces:
- DashboardStateStore
public class TransactionalDashboardStateStoreImpl
- extends Object
- implements DashboardStateStore
A DashboardStateStore implementation that adds a
transactional wrapper around an existing DashboardStateStore
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionalDashboardStateStoreImpl
public TransactionalDashboardStateStoreImpl(DashboardStateStore stateStore,
com.atlassian.sal.api.transaction.TransactionTemplate txTemplate)
- Constructor.
- Parameters:
stateStore - the dashboard state store to usetxTemplate - the transaction wrapper for persistence operations
retrieve
public DashboardState retrieve(DashboardId dashboardId)
throws DashboardNotFoundException
- Specified by:
retrieve in interface DashboardStateStore
- Throws:
DashboardNotFoundException
update
public DashboardState update(DashboardState state,
Iterable<DashboardChange> changes)
throws DashboardStateStoreException
- Specified by:
update in interface DashboardStateStore
- Throws:
DashboardStateStoreException
remove
public void remove(DashboardId dashboardId)
throws DashboardStateStoreException
- Specified by:
remove in interface DashboardStateStore
- Throws:
DashboardStateStoreException
findDashboardWithGadget
public DashboardState findDashboardWithGadget(GadgetId gadgetId)
throws DashboardNotFoundException
- Specified by:
findDashboardWithGadget in interface DashboardStateStore
- Throws:
DashboardNotFoundException
Copyright © 2011 Atlassian. All Rights Reserved.