|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DashboardService
Service that saves or fetches the DashboardState
, after checking to make sure that the user has access to the
dashboard.
Method Summary | |
---|---|
DashboardState |
get(DashboardId id,
String username)
Fetch the DashboardState if the user has permission. |
DashboardState |
save(DashboardState state,
String username)
Save the DashboardState if the user has permission. |
Method Detail |
---|
DashboardState get(DashboardId id, @Nullable String username) throws PermissionException
DashboardState
if the user has permission.
id
- Id of the dashboard to fetch.username
- Username of the user to check permissions on, or null if no user is logged in
DashboardState
for the given DashboardId
PermissionException
- thrown if the user does not have permission to read the dashboardDashboardState save(DashboardState state, @Nullable String username) throws PermissionException
DashboardState
if the user has permission.
state
- DashboardState
to save.username
- Username of the user to check permissions on, or null if no user is logged in
DashboardState
after the state object has been saved
PermissionException
- thrown if the user does not have permission to modify the dashboard
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |