Package org.keycloak.models
Interface RoleContainerModel
- All Known Subinterfaces:
CachedRealmModel
,ClientModel
,RealmModel
,StorageProviderRealmModel
- All Known Implementing Classes:
AbstractClientStorageAdapter
,AbstractReadOnlyClientStorageAdapter
,ClientAdapter
,ClientAdapter
,ClientModelLazyDelegate
,ClientModelLazyDelegate.WithId
,OIDCClientSecretConfigWrapper.ReadOnlyRotatedSecretClientModel
,RealmAdapter
,RealmAdapter
,RealmModelDelegate
,TypeAwareClientModelDelegate
,UnsupportedOperationsClientStorageAdapter
public interface RoleContainerModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns available roles as a stream.getRolesStream
(Integer firstResult, Integer maxResults) Returns available roles as a stream.boolean
removeRole
(RoleModel role) searchForRolesStream
(String search, Integer first, Integer max) Searches roles by the given name.
-
Method Details
-
getId
String getId() -
getRole
-
addRole
-
addRole
-
removeRole
-
getRolesStream
Returns available roles as a stream.- Returns:
- Stream of
RoleModel
. Never returnsnull
.
-
getRolesStream
Returns available roles as a stream.- Parameters:
firstResult
-Integer
Index of the first desired role. Ignored if negative ornull
.maxResults
-Integer
Maximum number of returned roles. Ignored if negative ornull
.- Returns:
- Stream of
RoleModel
. Never returnsnull
.
-
searchForRolesStream
Searches roles by the given name. Returns all roles that match the given filter.- Parameters:
search
-String
Name of the role to be used as a filter.first
-Integer
Index of the first desired role. Ignored if negative ornull
.max
-Integer
Maximum number of returned roles. Ignored if negative ornull
.- Returns:
- Stream of
RoleModel
. Never returnsnull
.
-