Interface SavedQueryUserRightsService

    • Method Detail

      • addReadUser

        void addReadUser​(PrincipalModel user,
                         CockpitSavedQueryModel model)
        Allows given user to read given collection.
        Parameters:
        user - to add read access
        collection - to add read access
      • removeReadUser

        void removeReadUser​(PrincipalModel user,
                            CockpitSavedQueryModel model)
        Disallow given user to read given collection.
        Parameters:
        user - to remove read access
        collection - to remove read access
      • getReadUsersForSavedQuery

        java.util.List<PrincipalModel> getReadUsersForSavedQuery​(CockpitSavedQueryModel model)
        Returns list of all users who are allowed to read given saved query.
        Parameters:
        collection - the collection to check read access
        Returns:
        user list of the users that are allowed to read given saved query