Class LdapMapStorage<RE,E extends AbstractEntity & UpdatableEntity,M>
java.lang.Object
org.keycloak.models.map.storage.ldap.LdapMapStorage<RE,E,M>
- All Implemented Interfaces:
KeycloakTransaction
,MapStorage<E,
M>
- Direct Known Subclasses:
LdapRoleMapStorage
public abstract class LdapMapStorage<RE,E extends AbstractEntity & UpdatableEntity,M>
extends Object
implements MapStorage<E,M>, KeycloakTransaction
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final LinkedList<LdapMapStorage.MapTaskWithValue>
protected final LinkedList<LdapMapStorage.MapTaskWithValue>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
commit()
long
delete
(QueryParameters<M> queryParameters) Instructs this transaction to remove values (identified bymcb
filter) from the underlying store upon commit.long
getCount
(QueryParameters<M> queryParameters) Returns a number of values present in the underlying storage that fulfill the given criteria with respect to changes done in the current transaction.boolean
boolean
isActive()
void
rollback()
void
-
Field Details
-
tasksOnRollback
-
tasksOnCommit
-
entities
-
-
Constructor Details
-
LdapMapStorage
public LdapMapStorage()
-
-
Method Details
-
getCount
Description copied from interface:MapStorage
Returns a number of values present in the underlying storage that fulfill the given criteria with respect to changes done in the current transaction.- Specified by:
getCount
in interfaceMapStorage<RE,
E extends AbstractEntity & UpdatableEntity> - Parameters:
queryParameters
- parameters for the query like firstResult, maxResult, requested ordering, etc.- Returns:
- number of values present in the storage that fulfill the given criteria
-
delete
Description copied from interface:MapStorage
Instructs this transaction to remove values (identified bymcb
filter) from the underlying store upon commit.- Specified by:
delete
in interfaceMapStorage<RE,
E extends AbstractEntity & UpdatableEntity> - Parameters:
queryParameters
- parameters for the query like firstResult, maxResult, requested ordering, etc.- Returns:
- number of removed objects (might return
-1
if not supported)
-
begin
public void begin()- Specified by:
begin
in interfaceKeycloakTransaction
-
commit
public void commit()- Specified by:
commit
in interfaceKeycloakTransaction
-
rollback
public void rollback()- Specified by:
rollback
in interfaceKeycloakTransaction
-
setRollbackOnly
public void setRollbackOnly()- Specified by:
setRollbackOnly
in interfaceKeycloakTransaction
-
getRollbackOnly
public boolean getRollbackOnly()- Specified by:
getRollbackOnly
in interfaceKeycloakTransaction
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceKeycloakTransaction
-