Interface UserRoleMappingsFederatedStorage

All Known Subinterfaces:
UserFederatedStorageProvider, UserFederatedStorageProvider.Streams, UserRoleMappingsFederatedStorage.Streams
All Known Implementing Classes:
JpaUserFederatedStorageProvider

public interface UserRoleMappingsFederatedStorage
Version:
$Revision: 1 $
Author:
Bill Burke
  • Method Details

    • grantRole

      void grantRole(RealmModel realm, String userId, RoleModel role)
    • getRoleMappingsStream

      Stream<RoleModel> getRoleMappingsStream(RealmModel realm, String userId)
      Obtains the roles associated with the federated user identified by userId.
      Parameters:
      realm - a reference to the realm.
      userId - the user identifier.
      Returns:
      a non-null Stream of roles.
    • deleteRoleMapping

      void deleteRoleMapping(RealmModel realm, String userId, RoleModel role)
    • getRoleMembersStream

      Stream<String> getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer max)
      Obtains the federated users that are members of the given role in the specified realm.
      Parameters:
      realm - a reference to the realm.
      role - a reference to the role whose federated members are being searched.
      firstResult - first result to return. Ignored if negative or null.
      max - maximum number of results to return. Ignored if negative or null.
      Returns:
      a non-null Stream of federated user ids that are members of the role in the realm.