@ParametersAreNonnullByDefault public interface DashboardService
DashboardState, after checking to make sure that the user has access to the
dashboard.| Modifier and Type | Method and Description |
|---|---|
DashboardState |
get(DashboardId id,
String username)
Fetch the
DashboardState if the user has permission. |
io.atlassian.fugue.Option<DashboardState> |
getDashboardForGadget(GadgetId gadgetId,
String username)
Gets dashboard state which contains the specified gadget
|
DashboardState |
save(DashboardState state,
String username)
Save the
DashboardState if the user has permission. |
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 inDashboardState for the given DashboardIdPermissionException - 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 inDashboardState after the state object has been savedPermissionException - thrown if the user does not have permission to modify the dashboardio.atlassian.fugue.Option<DashboardState> getDashboardForGadget(GadgetId gadgetId, @Nullable String username) throws PermissionException
gadgetId - id of the gadget contained in the returned dashboardusername - Username of the user to check permissions on, or null if no user is logged inPermissionException - thrown if the user does not have permissions to access the dashboardCopyright © 2024 Atlassian. All rights reserved.