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

java.lang.Object
  extended by com.atlassian.gadgets.dashboard.internal.impl.TransactionalDashboardStateStoreImpl
All Implemented Interfaces:
com.atlassian.gadgets.dashboard.spi.DashboardStateStore

public class TransactionalDashboardStateStoreImpl
extends Object
implements com.atlassian.gadgets.dashboard.spi.DashboardStateStore

A DashboardStateStore implementation that adds a transactional wrapper around an existing DashboardStateStore


Constructor Summary
TransactionalDashboardStateStoreImpl(com.atlassian.gadgets.dashboard.spi.DashboardStateStore stateStore, com.atlassian.sal.api.transaction.TransactionTemplate txTemplate)
          Constructor.
 
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 state, Iterable<com.atlassian.gadgets.dashboard.spi.changes.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(com.atlassian.gadgets.dashboard.spi.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 com.atlassian.gadgets.dashboard.DashboardState retrieve(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
                                                        throws com.atlassian.gadgets.dashboard.DashboardNotFoundException
Specified by:
retrieve in interface com.atlassian.gadgets.dashboard.spi.DashboardStateStore
Throws:
com.atlassian.gadgets.dashboard.DashboardNotFoundException

update

public com.atlassian.gadgets.dashboard.DashboardState update(com.atlassian.gadgets.dashboard.DashboardState state,
                                                             Iterable<com.atlassian.gadgets.dashboard.spi.changes.DashboardChange> changes)
                                                      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 © 2011 Atlassian. All Rights Reserved.