{"action":"created","comment":{"url":"https://api.github.com/repos/diging/quadriga/pulls/comments/60273255","id":60273255,"diff_hunk":"@@ -75,6 +75,71 @@ public ITransformedNetwork getTransformedNetworkOfProject(String projectId)\n         if (networkList == null) {\n             return null;\n         }\n+        \n+        ITransformedNetwork transformedNetwork = getTransformedNetworkusingNetworkList(networkList);\n+        \n+        return transformedNetwork;\n+    }\n+\n+    @Override\n+    public ITransformedNetwork getSearchTransformedNetwork(String projectId, String conceptId)\n+        throws QuadrigaStorageException {\n+        // get the transformed network and search for the concept id\n+        List<INetwork> networkList = getNetworkList(projectId);\n+\n+        if (networkList == null) {\n+            return null;\n+        }\n+\n+        // get the transformed network of all the networks in a project\n+        ITransformedNetwork transformedNetwork = getTransformedNetworkusingNetworkList(networkList);\n+        // create finalnetwork using conceptId \n+        ITransformedNetwork finalTransformedNetwork = getfinalTransformedNetwork(transformedNetwork,conceptId);\n+\n+        return finalTransformedNetwork;\n+    }\n+\n+    private List<INetwork> getNetworkList(String projectId) throws QuadrigaStorageException {\n+        List<INetwork> networkList;\n+        try {\n+            networkList = networkManager.getNetworksInProject(projectId);\n+        } catch (QuadrigaStorageException e) {\n+            throw new QuadrigaStorageException(\"Database error while getting networks of a project\" +\n+                    \" with id: \" + projectId, e);\n+        }\n+\n+        return networkList;\n+    }\n+    \n+    \n+    @Override\n+    public ITransformedNetwork getSearchTransformedNetworkMultipleProjects(List<String> projectIds, String conceptId)\n+        throws QuadrigaStorageException {\n+    \t// get the transformed network and search for the concept id\n+        List<INetwork> networkList = new ArrayList<>();\n+        \n+        for(String projectId : projectIds){\n+        \tList<INetwork> networks = getNetworkList(projectId);\n+        \tif(networks != null){\n+        \t\tnetworkList.addAll(networks);\n+        \t}\n+        }\n+        \n+        if (networkList.size()==0) {","path":"Quadriga/src/main/java/edu/asu/spring/quadriga/service/network/impl/NetworkTransformationManager.java","position":54,"original_position":54,"commit_id":"b9d001827d2f4cf591d3a8eae6875d7173a7e293","original_commit_id":"b9d001827d2f4cf591d3a8eae6875d7173a7e293","user":{"login":"jdamerow","id":8881141,"avatar_url":"https://avatars.githubusercontent.com/u/8881141?v=3","gravatar_id":"","url":"https://api.github.com/users/jdamerow","html_url":"https://github.com/jdamerow","followers_url":"https://api.github.com/users/jdamerow/followers","following_url":"https://api.github.com/users/jdamerow/following{/other_user}","gists_url":"https://api.github.com/users/jdamerow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamerow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamerow/subscriptions","organizations_url":"https://api.github.com/users/jdamerow/orgs","repos_url":"https://api.github.com/users/jdamerow/repos","events_url":"https://api.github.com/users/jdamerow/events{/privacy}","received_events_url":"https://api.github.com/users/jdamerow/received_events","type":"User","site_admin":false},"body":"why return null and not an empty list? Would make much more sense. If there are no networks, then the list is empty. Null usually indicates something else.","created_at":"2016-04-19T17:24:37Z","updated_at":"2016-04-19T17:24:37Z","html_url":"https://github.com/diging/quadriga/pull/189#discussion_r60273255","pull_request_url":"https://api.github.com/repos/diging/quadriga/pulls/189","_links":{"self":{"href":"https://api.github.com/repos/diging/quadriga/pulls/comments/60273255"},"html":{"href":"https://github.com/diging/quadriga/pull/189#discussion_r60273255"},"pull_request":{"href":"https://api.github.com/repos/diging/quadriga/pulls/189"}}},"pull_request":{"url":"https://api.github.com/repos/diging/quadriga/pulls/189","id":65184459,"html_url":"https://github.com/diging/quadriga/pull/189","diff_url":"https://github.com/diging/quadriga/pull/189.diff","patch_url":"https://github.com/diging/quadriga/pull/189.patch","issue_url":"https://api.github.com/repos/diging/quadriga/issues/189","number":189,"state":"open","locked":false,"title":"Story/quad 141","user":{"login":"snilapwa","id":14884639,"avatar_url":"https://avatars.githubusercontent.com/u/14884639?v=3","gravatar_id":"","url":"https://api.github.com/users/snilapwa","html_url":"https://github.com/snilapwa","followers_url":"https://api.github.com/users/snilapwa/followers","following_url":"https://api.github.com/users/snilapwa/following{/other_user}","gists_url":"https://api.github.com/users/snilapwa/gists{/gist_id}","starred_url":"https://api.github.com/users/snilapwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snilapwa/subscriptions","organizations_url":"https://api.github.com/users/snilapwa/orgs","repos_url":"https://api.github.com/users/snilapwa/repos","events_url":"https://api.github.com/users/snilapwa/events{/privacy}","received_events_url":"https://api.github.com/users/snilapwa/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-04T17:45:28Z","updated_at":"2016-04-19T17:24:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e6d1a653fc0d16278c8fbac09403c59655723bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diging/quadriga/pulls/189/commits","review_comments_url":"https://api.github.com/repos/diging/quadriga/pulls/189/comments","review_comment_url":"https://api.github.com/repos/diging/quadriga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diging/quadriga/issues/189/comments","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/b9d001827d2f4cf591d3a8eae6875d7173a7e293","head":{"label":"diging:story/QUAD-141","ref":"story/QUAD-141","sha":"b9d001827d2f4cf591d3a8eae6875d7173a7e293","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32819066,"name":"quadriga","full_name":"diging/quadriga","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/quadriga","description":"","fork":false,"url":"https://api.github.com/repos/diging/quadriga","forks_url":"https://api.github.com/repos/diging/quadriga/forks","keys_url":"https://api.github.com/repos/diging/quadriga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/quadriga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/quadriga/teams","hooks_url":"https://api.github.com/repos/diging/quadriga/hooks","issue_events_url":"https://api.github.com/repos/diging/quadriga/issues/events{/number}","events_url":"https://api.github.com/repos/diging/quadriga/events","assignees_url":"https://api.github.com/repos/diging/quadriga/assignees{/user}","branches_url":"https://api.github.com/repos/diging/quadriga/branches{/branch}","tags_url":"https://api.github.com/repos/diging/quadriga/tags","blobs_url":"https://api.github.com/repos/diging/quadriga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/quadriga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/quadriga/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/quadriga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/quadriga/languages","stargazers_url":"https://api.github.com/repos/diging/quadriga/stargazers","contributors_url":"https://api.github.com/repos/diging/quadriga/contributors","subscribers_url":"https://api.github.com/repos/diging/quadriga/subscribers","subscription_url":"https://api.github.com/repos/diging/quadriga/subscription","commits_url":"https://api.github.com/repos/diging/quadriga/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/quadriga/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/quadriga/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/quadriga/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/quadriga/contents/{+path}","compare_url":"https://api.github.com/repos/diging/quadriga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/quadriga/merges","archive_url":"https://api.github.com/repos/diging/quadriga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/quadriga/downloads","issues_url":"https://api.github.com/repos/diging/quadriga/issues{/number}","pulls_url":"https://api.github.com/repos/diging/quadriga/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/quadriga/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/quadriga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/quadriga/labels{/name}","releases_url":"https://api.github.com/repos/diging/quadriga/releases{/id}","deployments_url":"https://api.github.com/repos/diging/quadriga/deployments","created_at":"2015-03-24T19:05:57Z","updated_at":"2016-04-13T17:23:03Z","pushed_at":"2016-04-18T23:18:51Z","git_url":"git://github.com/diging/quadriga.git","ssh_url":"git@github.com:diging/quadriga.git","clone_url":"https://github.com/diging/quadriga.git","svn_url":"https://github.com/diging/quadriga","homepage":"http://diging.github.io/quadriga/","size":12717,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":13,"forks":1,"open_issues":13,"watchers":4,"default_branch":"develop"}},"base":{"label":"diging:develop","ref":"develop","sha":"716e2c1706c9c2428b5890ac2bdb77ee52e5f6e2","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32819066,"name":"quadriga","full_name":"diging/quadriga","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/quadriga","description":"","fork":false,"url":"https://api.github.com/repos/diging/quadriga","forks_url":"https://api.github.com/repos/diging/quadriga/forks","keys_url":"https://api.github.com/repos/diging/quadriga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/quadriga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/quadriga/teams","hooks_url":"https://api.github.com/repos/diging/quadriga/hooks","issue_events_url":"https://api.github.com/repos/diging/quadriga/issues/events{/number}","events_url":"https://api.github.com/repos/diging/quadriga/events","assignees_url":"https://api.github.com/repos/diging/quadriga/assignees{/user}","branches_url":"https://api.github.com/repos/diging/quadriga/branches{/branch}","tags_url":"https://api.github.com/repos/diging/quadriga/tags","blobs_url":"https://api.github.com/repos/diging/quadriga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/quadriga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/quadriga/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/quadriga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/quadriga/languages","stargazers_url":"https://api.github.com/repos/diging/quadriga/stargazers","contributors_url":"https://api.github.com/repos/diging/quadriga/contributors","subscribers_url":"https://api.github.com/repos/diging/quadriga/subscribers","subscription_url":"https://api.github.com/repos/diging/quadriga/subscription","commits_url":"https://api.github.com/repos/diging/quadriga/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/quadriga/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/quadriga/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/quadriga/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/quadriga/contents/{+path}","compare_url":"https://api.github.com/repos/diging/quadriga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/quadriga/merges","archive_url":"https://api.github.com/repos/diging/quadriga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/quadriga/downloads","issues_url":"https://api.github.com/repos/diging/quadriga/issues{/number}","pulls_url":"https://api.github.com/repos/diging/quadriga/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/quadriga/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/quadriga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/quadriga/labels{/name}","releases_url":"https://api.github.com/repos/diging/quadriga/releases{/id}","deployments_url":"https://api.github.com/repos/diging/quadriga/deployments","created_at":"2015-03-24T19:05:57Z","updated_at":"2016-04-13T17:23:03Z","pushed_at":"2016-04-18T23:18:51Z","git_url":"git://github.com/diging/quadriga.git","ssh_url":"git@github.com:diging/quadriga.git","clone_url":"https://github.com/diging/quadriga.git","svn_url":"https://github.com/diging/quadriga","homepage":"http://diging.github.io/quadriga/","size":12717,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":13,"forks":1,"open_issues":13,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diging/quadriga/pulls/189"},"html":{"href":"https://github.com/diging/quadriga/pull/189"},"issue":{"href":"https://api.github.com/repos/diging/quadriga/issues/189"},"comments":{"href":"https://api.github.com/repos/diging/quadriga/issues/189/comments"},"review_comments":{"href":"https://api.github.com/repos/diging/quadriga/pulls/189/comments"},"review_comment":{"href":"https://api.github.com/repos/diging/quadriga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diging/quadriga/pulls/189/commits"},"statuses":{"href":"https://api.github.com/repos/diging/quadriga/statuses/b9d001827d2f4cf591d3a8eae6875d7173a7e293"}}}}