You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/03/12 17:48:46 UTC

[GitHub] [nifi-registry] brosander commented on a change in pull request #161: NIFIREG-234: Publish events for tenant CRUD

brosander 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_r264806322
 
 

 ##########
 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:
   Good point, will add

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services