Package com.infragistics.reveal.sdk.api
Interface IRVDashboardAuthorizationProvider
-
public interface IRVDashboardAuthorizationProvider
An optional interface to provide authorization control before actually asking the dashboard provider to read/save a dashboard, it must be implemented and passed to Reveal Engine initialization. If an instance of this interface is not provided at initialization time, all users will have access to read and write dashboards, you can still have your permissions checked in the implementation ofIRVDashboardProvider
and throwRVUnauthorizedException
if the user is not allowed to perform the operation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasReadPermission(IRVUserContext userContext, String dashboardId)
Returns true if the user identified by userId has permission to read the dashboard identified by dashboardIdboolean
hasWritePermission(IRVUserContext userContext, String dashboardId)
Returns true if the user identified by userId has permission to update the dashboard identified by dashboardId
-
-
-
Method Detail
-
hasReadPermission
boolean hasReadPermission(IRVUserContext userContext, String dashboardId)
Returns true if the user identified by userId has permission to read the dashboard identified by dashboardId- Parameters:
userContext
- The user context of the user trying to read the dashboard.dashboardId
- The ID of the dashboard being read.- Returns:
-
hasWritePermission
boolean hasWritePermission(IRVUserContext userContext, String dashboardId)
Returns true if the user identified by userId has permission to update the dashboard identified by dashboardId- Parameters:
userContext
- The user context of the user trying to update the dashboard.dashboardId
- The ID of the dashboard being updated.- Returns:
-
-