Class LDAPTransaction
java.lang.Object
org.keycloak.models.AbstractKeycloakTransaction
org.keycloak.storage.ldap.mappers.LDAPTransaction
- All Implemented Interfaces:
KeycloakTransaction
- Author:
- Marek Posolda
-
Nested Class Summary
Nested classes/interfaces inherited from class org.keycloak.models.AbstractKeycloakTransaction
AbstractKeycloakTransaction.TransactionState
-
Field Summary
Fields inherited from class org.keycloak.models.AbstractKeycloakTransaction
state
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUpdatedAttribute
(String attributeName) Add attribute, which will be updated in LDAP in this transactionvoid
addUpdatedRequiredAction
(String requiredActionName) Add required action, which will be updated in LDAP in this transactionprotected void
boolean
isAttributeUpdated
(String attributeName) boolean
isRequiredActionUpdated
(String requiredActionName) protected void
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, beginImpl, commit, getRollbackOnly, getState, isActive, rollback, setRollbackOnly
-
Field Details
-
logger
public static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
LDAPTransaction
-
-
Method Details
-
commitImpl
protected void commitImpl()- Specified by:
commitImpl
in classAbstractKeycloakTransaction
-
rollbackImpl
protected void rollbackImpl()- Specified by:
rollbackImpl
in classAbstractKeycloakTransaction
-
addUpdatedAttribute
Add attribute, which will be updated in LDAP in this transaction- Parameters:
attributeName
- model attribute name (For example "firstName", "lastName", "street")
-
isAttributeUpdated
- Parameters:
attributeName
- model attribute name (For example "firstName", "lastName", "street")- Returns:
- true if attribute was updated in this transaction
-
addUpdatedRequiredAction
Add required action, which will be updated in LDAP in this transaction- Parameters:
requiredActionName
-
-
isRequiredActionUpdated
- Parameters:
requiredActionName
-- Returns:
- true if requiredAction was updated in this transaction
-