kevdoran commented on a change in pull request #161: NIFIREG-234: Publish 
events for tenant CRUD
URL: https://github.com/apache/nifi-registry/pull/161#discussion_r264684498
 
 

 ##########
 File path: 
nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/event/EventFactory.java
 ##########
 @@ -133,4 +135,46 @@ public static Event extensionBundleVersionDeleted(final 
ExtensionBundleVersion b
                 .addField(EventFieldName.USER, 
NiFiUserUtils.getNiFiUserIdentity())
                 .build();
     }
+
+    public static Event userCreated(final User user) {
+        return new StandardEvent.Builder()
+                .eventType(EventType.CREATE_USER)
+                .addField(EventFieldName.USER, user.getIdentity())
 
 Review comment:
   Tenant Events should probably have the identifier field as well.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to