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

java.lang.Object
  extended by com.atlassian.gadgets.dashboard.internal.impl.DashboardServiceImpl
All Implemented Interfaces:
DashboardService

public class DashboardServiceImpl
extends Object
implements DashboardService

Default implementation of DashboardService.


Constructor Summary
DashboardServiceImpl(TransactionalDashboardStateStoreImpl stateStore, PermissionService permissionService)
          Constructor.
 
Method Summary
 DashboardState get(DashboardId id, String username)
           
 DashboardState save(DashboardState state, String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashboardServiceImpl

public DashboardServiceImpl(TransactionalDashboardStateStoreImpl stateStore,
                            PermissionService permissionService)
Constructor.

Parameters:
stateStore - the dashboard state store to use
permissionService - the permissions to validate users by
Method Detail

get

public DashboardState get(DashboardId id,
                          String username)
                   throws PermissionException
Specified by:
get in interface DashboardService
Throws:
PermissionException

save

public DashboardState save(DashboardState state,
                           String username)
                    throws PermissionException
Specified by:
save in interface DashboardService
Throws:
PermissionException


Copyright © 2010 Atlassian. All Rights Reserved.