Package org.keycloak.userprofile
Class EventAuditingAttributeChangeListener
- java.lang.Object
- 
- org.keycloak.userprofile.EventAuditingAttributeChangeListener
 
- 
- All Implemented Interfaces:
- AttributeChangeListener
 
 public class EventAuditingAttributeChangeListener extends Object implements AttributeChangeListener AttributeChangeListenerto audit user profile attribute changes intoEvent. Adds info about user profile attribute change intoEvent's detail field.- Author:
- Vlastimil Elias 
- See Also:
- UserProfile.update(AttributeChangeListener...)
 
- 
- 
Constructor SummaryConstructors Constructor Description EventAuditingAttributeChangeListener(UserProfile profile, EventBuilder event)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonChange(String attributeName, UserModel userModel, List<String> oldValue)Method called for each user attribute change.
 
- 
- 
- 
Constructor Detail- 
EventAuditingAttributeChangeListenerpublic EventAuditingAttributeChangeListener(UserProfile profile, EventBuilder event) - Parameters:
- profile- used to read attribute configuration from
- event- to add detail info into
 
 
- 
 - 
Method Detail- 
onChangepublic void onChange(String attributeName, UserModel userModel, List<String> oldValue) Description copied from interface:AttributeChangeListenerMethod called for each user attribute change.- Specified by:
- onChangein interface- AttributeChangeListener
- Parameters:
- attributeName- of the changed user attribute
- userModel- model where new attribute value is applied already (can be null if attribute is removed)
- oldValue- of the attribute before the change (can be null)
 
 
- 
 
-