com.atlassian.gadgets.dashboard.internal.impl
Class TransactionalDashboardStateStoreImpl

java.lang.Object
  extended by 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


Constructor Summary
TransactionalDashboardStateStoreImpl(DashboardStateStore stateStore, com.atlassian.sal.api.transaction.TransactionTemplate txTemplate)
          Constructor.
 
Method Summary
 DashboardState findDashboardWithGadget(GadgetId gadgetId)
           
 void remove(DashboardId dashboardId)
           
 DashboardState retrieve(DashboardId dashboardId)
           
 DashboardState update(DashboardState state, Iterable<DashboardChange> changes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalDashboardStateStoreImpl

public TransactionalDashboardStateStoreImpl(DashboardStateStore stateStore,
                                            com.atlassian.sal.api.transaction.TransactionTemplate txTemplate)
Constructor.

Parameters:
stateStore - the dashboard state store to use
txTemplate - the transaction wrapper for persistence operations
Method Detail

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 © 2010 Atlassian. All Rights Reserved.