Class LdapRoleMapStorage
- java.lang.Object
- 
- org.keycloak.models.map.storage.ldap.LdapMapStorage<LdapMapRoleEntityFieldDelegate,MapRoleEntity,RoleModel>
- 
- org.keycloak.models.map.storage.ldap.role.LdapRoleMapStorage
 
 
- 
- All Implemented Interfaces:
- KeycloakTransaction,- MapStorage<MapRoleEntity,RoleModel>,- Provider
 
 public class LdapRoleMapStorage extends LdapMapStorage<LdapMapRoleEntityFieldDelegate,MapRoleEntity,RoleModel> implements Provider 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceLdapRoleMapStorage.LdapRoleMapKeycloakTransactionFunction<A,B,R>- 
Nested classes/interfaces inherited from class org.keycloak.models.map.storage.ldap.LdapMapStorageLdapMapStorage.DeleteOperation, LdapMapStorage.MapTaskWithValue
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.storage.ldap.LdapMapStorageentities, tasksOnCommit, tasksOnRollback
 
- 
 - 
Constructor SummaryConstructors Constructor Description LdapRoleMapStorage(KeycloakSession session, Config.Scope config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcommit()LdapMapRoleEntityFieldDelegatecreate(MapRoleEntity value)Instructs this storage to add a new value into the underlying store on commit in the context of the current transaction.protected LdapRoleModelCriteriaBuildercreateLdapModelCriteriaBuilder()booleandelete(String key)Instructs this storage to delete a value associated with the identifierkeyfrom the underlying store upon commit.LdapMapRoleEntityFieldDelegateread(String key)Provides possibility to lookup for values by akeyin the underlying store with respect to changes done in current transaction.Stream<MapRoleEntity>read(QueryParameters<RoleModel> queryParameters)Returns a stream of values from underlying storage that are updated based on the current transaction changes; i.e.StringreadIdByDn(String dn)LdapRoleEntityreadLdap(String key)voidrollback()- 
Methods inherited from class org.keycloak.models.map.storage.ldap.LdapMapStoragebegin, delete, getCount, getRollbackOnly, isActive, setRollbackOnly
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.MapStorageexists, exists
 
- 
 
- 
- 
- 
Constructor Detail- 
LdapRoleMapStoragepublic LdapRoleMapStorage(KeycloakSession session, Config.Scope config) 
 
- 
 - 
Method Detail- 
createpublic LdapMapRoleEntityFieldDelegate create(MapRoleEntity value) Description copied from interface:MapStorageInstructs this storage to add a new value into the underlying store on commit in the context of the current transaction.Updates to the returned instances of Vwould be visible in the current transaction and will propagate into the underlying store upon commit. The ID of the entity passed in the parameter might change to a different value in the returned value if the underlying storage decided this was necessary. If the ID of the entity was null before, it will be set on the returned value.- Specified by:
- createin interface- MapStorage<MapRoleEntity,RoleModel>
- Parameters:
- value- the value
- Returns:
- Entity representing the valuein the store. It may or may not be the same instance asvalue.
 
 - 
deletepublic boolean delete(String key) Description copied from interface:MapStorageInstructs this storage to delete a value associated with the identifierkeyfrom the underlying store upon commit.- Specified by:
- deletein interface- MapStorage<MapRoleEntity,RoleModel>
- Parameters:
- key- identifier of a value
- Returns:
- Returns trueif the object has been deleted or result cannot be determined,falseotherwise.
 
 - 
readLdappublic LdapRoleEntity readLdap(String key) 
 - 
readpublic LdapMapRoleEntityFieldDelegate read(String key) Description copied from interface:MapStorageProvides possibility to lookup for values by akeyin the underlying store with respect to changes done in current transaction. Updates to the returned instance would be visible in the current transaction and will propagate into the underlying store upon commit. IfVimplementsExpirableEntitythis method should not return entities that are expired. SeeExpirableEntityJavaDoc for more details.- Specified by:
- readin interface- MapStorage<MapRoleEntity,RoleModel>
- Parameters:
- key- identifier of a value
- Returns:
- a value associated with the given key
 
 - 
readpublic Stream<MapRoleEntity> read(QueryParameters<RoleModel> queryParameters) Description copied from interface:MapStorageReturns a stream of values from underlying storage that are updated based on the current transaction changes; i.e. the result contains updates and excludes of records that have been created, updated or deleted in this transaction by respective methods of this interface.Updates to the returned instances of Vwould be visible in the current transaction and will propagate into the underlying store upon commit. IfVimplementsExpirableEntitythis method should not return entities that are expired. SeeExpirableEntityJavaDoc for more details.- Specified by:
- readin interface- MapStorage<MapRoleEntity,RoleModel>
- Parameters:
- queryParameters- parameters for the query like firstResult, maxResult, requested ordering, etc.
- Returns:
- values that fulfill the given criteria, that are updated based on changes in the current transaction
 
 - 
commitpublic void commit() - Specified by:
- commitin interface- KeycloakTransaction
- Overrides:
- commitin class- LdapMapStorage<LdapMapRoleEntityFieldDelegate,MapRoleEntity,RoleModel>
 
 - 
rollbackpublic void rollback() - Specified by:
- rollbackin interface- KeycloakTransaction
- Overrides:
- rollbackin class- LdapMapStorage<LdapMapRoleEntityFieldDelegate,MapRoleEntity,RoleModel>
 
 - 
createLdapModelCriteriaBuilderprotected LdapRoleModelCriteriaBuilder createLdapModelCriteriaBuilder() 
 
- 
 
-