Skip to content

Commit

Permalink
Add event property values from identityEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaSamindraPerera committed Mar 15, 2024
1 parent 9184f85 commit 3e01f52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6300,10 +6300,10 @@ private void publishEvent(User user, String eventName, boolean isAdminUpdate)
properties.put(IdentityEventConstants.EventProperty.CREDENTIAL, user.getPassword());
if (isAdminUpdate) {
properties.put(IdentityEventConstants.EventProperty.SCENARIO,
SCIMCommonConstants.EventScenarioTypes.POST_CREDENTIAL_UPDATE_BY_ADMIN.name());
IdentityEventConstants.EventProperty.Scenario.ScenarioTypes.POST_CREDENTIAL_UPDATE_BY_ADMIN);
} else {
properties.put(IdentityEventConstants.EventProperty.SCENARIO,
SCIMCommonConstants.EventScenarioTypes.POST_CREDENTIAL_UPDATE_BY_USER.name());
IdentityEventConstants.EventProperty.Scenario.ScenarioTypes.POST_CREDENTIAL_UPDATE_BY_USER);
}

Event identityMgtEvent = new Event(eventName, properties);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,5 @@ public String toString() {
return code + " : " + message;
}
}

/**
* Enum which contains the event scenario types.
*/
public enum EventScenarioTypes {

POST_CREDENTIAL_UPDATE_BY_ADMIN,
POST_CREDENTIAL_UPDATE_BY_USER,
}
}

0 comments on commit 3e01f52

Please sign in to comment.