|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.dashboard.internal.impl.TransactionalDashboardStateStoreImpl
public class TransactionalDashboardStateStoreImpl
A DashboardStateStore
implementation that adds a
transactional wrapper around an existing DashboardStateStore
Constructor Summary | |
---|---|
TransactionalDashboardStateStoreImpl(DashboardStateStore stateStore,
com.atlassian.sal.api.transaction.TransactionTemplate txTemplate)
Constructor. |
Method Summary | |
---|---|
DashboardState |
findDashboardWithGadget(GadgetId gadgetId)
Retrieve the DashboardState for the dashboard containing the gadget whose identifier is gadgetID |
void |
remove(DashboardId dashboardId)
Removes the DashboardState identified by the DashboardId from the persistent data store. |
DashboardState |
retrieve(DashboardId dashboardId)
Retrieve the DashboardState with the DashboardId from the data store. |
DashboardState |
update(DashboardState state,
Iterable<DashboardChange> changes)
Update the stored DashboardState in the persistent data store, using the changes passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalDashboardStateStoreImpl(DashboardStateStore stateStore, com.atlassian.sal.api.transaction.TransactionTemplate txTemplate)
stateStore
- the dashboard state store to usetxTemplate
- the transaction wrapper for persistence operationsMethod Detail |
---|
public DashboardState retrieve(DashboardId dashboardId) throws DashboardNotFoundException
DashboardStateStore
DashboardState
with the DashboardId
from the data store.
retrieve
in interface DashboardStateStore
dashboardId
- unique identifier of the DashboardState
object to retrieve
DashboardState
object corresponding to the DashboardId
DashboardNotFoundException
- thrown if there is no DashboardState
object with the given id
public DashboardState update(DashboardState state, Iterable<DashboardChange> changes) throws DashboardStateStoreException
DashboardStateStore
DashboardState
in the persistent data store, using the changes
passed in.
update
in interface DashboardStateStore
state
- the DashboardState
to update in the persistent data storechanges
- the changes to the dashboard that should be applied
DashboardState
so that it can be verified that the state we tried to store
is the actual state that is in the store
DashboardStateStoreException
- thrown if there is a problem when updating the DashboardState
in
the persistent data storepublic void remove(DashboardId dashboardId) throws DashboardStateStoreException
DashboardStateStore
DashboardState
identified by the DashboardId
from the persistent data store.
remove
in interface DashboardStateStore
dashboardId
- unique identifier of the DashboardState
to be removed from the persistent data store
DashboardStateStoreException
- thrown if there is a problem when removing the DashboardState
from
the persistent data storepublic DashboardState findDashboardWithGadget(GadgetId gadgetId) throws DashboardNotFoundException
DashboardStateStore
DashboardState
for the dashboard containing the gadget whose identifier is gadgetID
findDashboardWithGadget
in interface DashboardStateStore
gadgetId
- the identifier of the gadget
DashboardState
object for the dashboard containing the gadget
DashboardNotFoundException
- thrown if there is a problem retrieving the DashboardState
from the persistent store
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |