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 SummaryNested Classes Modifier and Type Class Description protected static classLdapMapKeycloakTransaction.DeleteOperationprotected static classLdapMapKeycloakTransaction.MapTaskWithValue
 - 
Field SummaryFields Modifier and Type Field Description protected Map<String,RE>entitiesprotected LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue>tasksOnCommitprotected LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue>tasksOnRollback
 - 
Constructor SummaryConstructors Constructor Description LdapMapKeycloakTransaction()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()voidcommit()longdelete(QueryParameters<M> queryParameters)Instructs this transaction to remove values (identified bymcbfilter) from the underlying store on commit.longgetCount(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.booleangetRollbackOnly()booleanisActive()voidrollback()voidsetRollbackOnly()
 
- 
- 
- 
Field Detail- 
tasksOnRollbackprotected final LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue> tasksOnRollback 
 - 
tasksOnCommitprotected final LinkedList<LdapMapKeycloakTransaction.MapTaskWithValue> tasksOnCommit 
 
- 
 - 
Method Detail- 
getCountpublic long getCount(QueryParameters<M> queryParameters) Description copied from interface:MapKeycloakTransactionReturns 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:
- getCountin interface- MapKeycloakTransaction<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
 
 - 
deletepublic long delete(QueryParameters<M> queryParameters) Description copied from interface:MapKeycloakTransactionInstructs this transaction to remove values (identified bymcbfilter) from the underlying store on commit.- Specified by:
- deletein interface- MapKeycloakTransaction<RE,E extends AbstractEntity & UpdatableEntity>
- Parameters:
- queryParameters- parameters for the query like firstResult, maxResult, requested ordering, etc.
- Returns:
- number of removed objects (might return -1if not supported)
 
 - 
beginpublic void begin() - Specified by:
- beginin interface- KeycloakTransaction
 
 - 
commitpublic void commit() - Specified by:
- commitin interface- KeycloakTransaction
 
 - 
rollbackpublic void rollback() - Specified by:
- rollbackin interface- KeycloakTransaction
 
 - 
setRollbackOnlypublic void setRollbackOnly() - Specified by:
- setRollbackOnlyin interface- KeycloakTransaction
 
 - 
getRollbackOnlypublic boolean getRollbackOnly() - Specified by:
- getRollbackOnlyin interface- KeycloakTransaction
 
 - 
isActivepublic boolean isActive() - Specified by:
- isActivein interface- KeycloakTransaction
 
 
- 
 
-