Interface IRVObjectFilter


  • public interface IRVObjectFilter
    Allows filtering of 'objects' (DataSource and DataSourceItems) to be returned to the client. This makes it possible, for example, to avoid some tables or views to be seen when creating a Database data source. Only supported for Database providers.
    • Method Detail

      • filter

        boolean filter​(IRVUserContext userContext,
                       RVDashboardDataSource dataSource)
        Used to filter DataSources to be returned to the client. Only supported for Database providers.
        Parameters:
        userContext - User context
        dataSource - Information about the data source being used, like the host name for a database, etc.
        Returns:
        True if the data source should be returned, false if not.
      • filter

        boolean filter​(IRVUserContext userContext,
                       RVDataSourceItem dataSourceItem)
        Used to filter DataSourceItems to be returned to the client. Only supported for Database providers.
        Parameters:
        userContext - User context
        dataSourceItem - Information about the data source item being used, like the name of the table, database, etc.
        Returns:
        True if the data source item should be returned, false if not.