Package io.revealbi.core
Interface IRVDashboardProvider
- All Known Implementing Classes:
RVDashboardProvider
public interface IRVDashboardProvider
The interface that provides loading and saving of dashboards, it must be implemented and passed to Reveal Engine initialization.
-
Method Summary
Modifier and TypeMethodDescriptiongetDashboard(IRVUserContext userContext, String dashboardId) Loads the dashboard with the given dashboardId for the given user.voidsaveDashboard(IRVUserContext userContext, String dashboardId, InputStream dashboardStream) Saves the dashboard with the given dashboardId for the given user.
-
Method Details
-
getDashboard
Loads the dashboard with the given dashboardId for the given user. Returnsnullif such dashboard does not exist.- Parameters:
userContext- The user context of the user loading the dashboard, as returned by your user context provider.dashboardId- The ID of the dashboard to return.- Returns:
- The stream containing the dashboard definition in "rdash" format.
- Throws:
IOException
-
saveDashboard
void saveDashboard(IRVUserContext userContext, String dashboardId, InputStream dashboardStream) throws IOException Saves the dashboard with the given dashboardId for the given user.- Parameters:
userContext- The user context of the user saving the dashboard, as returned by your user context provider.dashboardId- The ID of the dashboard to be saved.dashboardStream- The contents of the dashboard, in "rdash" format. The dashboardStream will be closed after this method execution.- Throws:
IOException
-