Package org.keycloak.storage.federated
Interface UserRoleMappingsFederatedStorage
-
- All Known Subinterfaces:
UserFederatedStorageProvider,UserFederatedStorageProvider.Streams,UserRoleMappingsFederatedStorage.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
public interface UserRoleMappingsFederatedStorage- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUserRoleMappingsFederatedStorage.StreamsTheUserRoleMappingsFederatedStorage.Streamsinterface makes all collection-based methods inUserRoleMappingsFederatedStoragedefault by providing implementations that delegate to theStream-based variants instead of the other way around.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voiddeleteRoleMapping(RealmModel realm, String userId, RoleModel role)Set<RoleModel>getRoleMappings(RealmModel realm, String userId)Deprecated.UsegetRoleMappingsStreaminstead.default Stream<RoleModel>getRoleMappingsStream(RealmModel realm, String userId)Obtains the roles associated with the federated user identified byuserId.voidgrantRole(RealmModel realm, String userId, RoleModel role)
-
-
-
Method Detail
-
getRoleMappings
@Deprecated Set<RoleModel> getRoleMappings(RealmModel realm, String userId)
Deprecated.UsegetRoleMappingsStreaminstead.
-
grantRole
void grantRole(RealmModel realm, String userId, RoleModel role)
-
getRoleMappingsStream
default Stream<RoleModel> getRoleMappingsStream(RealmModel realm, String userId)
Obtains the roles associated with the federated user identified byuserId.- Parameters:
realm- a reference to the realm.userId- the user identifier.- Returns:
- a non-null
Streamof roles.
-
deleteRoleMapping
void deleteRoleMapping(RealmModel realm, String userId, RoleModel role)
-
-