Repository: incubator-nifi
Updated Branches:
  refs/heads/develop a1f043845 -> 2d0bb1c1c


NIFI-701:
- Including controller services in downloaded templates.

Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/5fe99752
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/5fe99752
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/5fe99752

Branch: refs/heads/develop
Commit: 5fe99752927f4f2fb460ecb5cd651089770d811f
Parents: cef7206
Author: Matt Gilman <[email protected]>
Authored: Fri Jun 19 09:57:30 2015 -0400
Committer: Matt Gilman <[email protected]>
Committed: Fri Jun 19 09:57:30 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/5fe99752/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
index 999a4a4..54f11fb 100644
--- 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
+++ 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
@@ -797,6 +797,11 @@ public final class DtoFactory {
                 copySnippet.getRemoteProcessGroups().add(copy(remoteGroup));
             }
         }
+        if (originalSnippet.getControllerServices() != null) {
+            for (final ControllerServiceDTO controllerService : 
originalSnippet.getControllerServices()) {
+                
copySnippet.getControllerServices().add(copy(controllerService));
+            }
+        }
 
         return copySnippet;
     }

Reply via email to