Class LdapMapKeycloakTransaction<RE,E extends AbstractEntity & UpdatableEntity,M>
- java.lang.Object
-
- org.keycloak.models.map.storage.ldap.LdapMapKeycloakTransaction<RE,E,M>
-
- All Implemented Interfaces:
KeycloakTransaction
,MapKeycloakTransaction<E,M>
- Direct Known Subclasses:
LdapRoleMapKeycloakTransaction
public abstract class LdapMapKeycloakTransaction<RE,E extends AbstractEntity & UpdatableEntity,M> extends Object implements MapKeycloakTransaction<E,M>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
LdapMapKeycloakTransaction.DeleteOperation
protected static class
LdapMapKeycloakTransaction.MapTaskWithValue
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,RE>
entities
protected LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue>
tasksOnCommit
protected LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue>
tasksOnRollback
-
Constructor Summary
Constructors Constructor Description LdapMapKeycloakTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
long
delete(QueryParameters<M> queryParameters)
Instructs this transaction to remove values (identified bymcb
filter) from the underlying store on 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
getRollbackOnly()
boolean
isActive()
void
rollback()
void
setRollbackOnly()
-
-
-
Field Detail
-
tasksOnRollback
protected final LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue> tasksOnRollback
-
tasksOnCommit
protected final LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue> tasksOnCommit
-
-
Method Detail
-
getCount
public long getCount(QueryParameters<M> queryParameters)
Description copied from interface:MapKeycloakTransaction
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 interfaceMapKeycloakTransaction<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
public long delete(QueryParameters<M> queryParameters)
Description copied from interface:MapKeycloakTransaction
Instructs this transaction to remove values (identified bymcb
filter) from the underlying store on commit.- Specified by:
delete
in interfaceMapKeycloakTransaction<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
-
-