{"action":"created","comment":{"url":"https://api.github.com/repos/qivicon/smarthome/pulls/comments/22717852","id":22717852,"diff_hunk":"@@ -70,6 +57,30 @@ public PersistedItem(String itemType, List<String> groupNames, String baseItemTy\n \n     private Collection<ItemFactory> itemFactories = new CopyOnWriteArrayList<ItemFactory>();\n \n+    public void remove(String itemName, boolean recursive) {\n+        Item item = get(itemName);\n+        if (recursive && item instanceof GroupItem) {\n+            List<String> members = getMemberNamesRecursive((GroupItem) item, getAll());\n+            for (String member : members) {\n+                this.remove(member);\n+            }\n+        }\n+        this.remove(item.getName());\n+    }\n+    \n+    private List<String> getMemberNamesRecursive(GroupItem groupItem, Collection<Item> allItems) {","path":"bundles/core/org.eclipse.smarthome.core/src/main/java/org/eclipse/smarthome/core/items/ManagedItemProvider.java","position":53,"original_position":53,"commit_id":"8334b26f3be34d6686ed1c6cfd30b61a084eb274","original_commit_id":"8334b26f3be34d6686ed1c6cfd30b61a084eb274","user":{"login":"AlexTugarev","id":914497,"avatar_url":"https://avatars.githubusercontent.com/u/914497?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexTugarev","html_url":"https://github.com/AlexTugarev","followers_url":"https://api.github.com/users/AlexTugarev/followers","following_url":"https://api.github.com/users/AlexTugarev/following{/other_user}","gists_url":"https://api.github.com/users/AlexTugarev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexTugarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexTugarev/subscriptions","organizations_url":"https://api.github.com/users/AlexTugarev/orgs","repos_url":"https://api.github.com/users/AlexTugarev/repos","events_url":"https://api.github.com/users/AlexTugarev/events{/privacy}","received_events_url":"https://api.github.com/users/AlexTugarev/received_events","type":"User","site_admin":false},"body":"rename to getMemberNamesRecursively or getAllMemberNames ?","created_at":"2015-01-09T14:26:59Z","updated_at":"2015-01-09T14:26:59Z","html_url":"https://github.com/qivicon/smarthome/pull/16#discussion_r22717852","pull_request_url":"https://api.github.com/repos/qivicon/smarthome/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/qivicon/smarthome/pulls/comments/22717852"},"html":{"href":"https://github.com/qivicon/smarthome/pull/16#discussion_r22717852"},"pull_request":{"href":"https://api.github.com/repos/qivicon/smarthome/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/qivicon/smarthome/pulls/16","id":27101270,"html_url":"https://github.com/qivicon/smarthome/pull/16","diff_url":"https://github.com/qivicon/smarthome/pull/16.diff","patch_url":"https://github.com/qivicon/smarthome/pull/16.patch","issue_url":"https://api.github.com/repos/qivicon/smarthome/issues/16","number":16,"state":"open","locked":false,"title":"Item extensions","user":{"login":"AlexTugarev","id":914497,"avatar_url":"https://avatars.githubusercontent.com/u/914497?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexTugarev","html_url":"https://github.com/AlexTugarev","followers_url":"https://api.github.com/users/AlexTugarev/followers","following_url":"https://api.github.com/users/AlexTugarev/following{/other_user}","gists_url":"https://api.github.com/users/AlexTugarev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexTugarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexTugarev/subscriptions","organizations_url":"https://api.github.com/users/AlexTugarev/orgs","repos_url":"https://api.github.com/users/AlexTugarev/repos","events_url":"https://api.github.com/users/AlexTugarev/events{/privacy}","received_events_url":"https://api.github.com/users/AlexTugarev/received_events","type":"User","site_admin":false},"body":"Also-by: Dennis Nobel <d.nobel@external.telekom.de>\r\nSigned-off-by: Alex Tugarev <telekom@tugarev.de>","created_at":"2015-01-09T14:01:04Z","updated_at":"2015-01-09T14:26:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f519cdd836cd32bd7a4838b70e58929ffdb27e9a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qivicon/smarthome/pulls/16/commits","review_comments_url":"https://api.github.com/repos/qivicon/smarthome/pulls/16/comments","review_comment_url":"https://api.github.com/repos/qivicon/smarthome/pulls/comments/{number}","comments_url":"https://api.github.com/repos/qivicon/smarthome/issues/16/comments","statuses_url":"https://api.github.com/repos/qivicon/smarthome/statuses/8334b26f3be34d6686ed1c6cfd30b61a084eb274","head":{"label":"qivicon:item-extensions-contribution","ref":"item-extensions-contribution","sha":"8334b26f3be34d6686ed1c6cfd30b61a084eb274","user":{"login":"qivicon","id":3966591,"avatar_url":"https://avatars.githubusercontent.com/u/3966591?v=3","gravatar_id":"","url":"https://api.github.com/users/qivicon","html_url":"https://github.com/qivicon","followers_url":"https://api.github.com/users/qivicon/followers","following_url":"https://api.github.com/users/qivicon/following{/other_user}","gists_url":"https://api.github.com/users/qivicon/gists{/gist_id}","starred_url":"https://api.github.com/users/qivicon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qivicon/subscriptions","organizations_url":"https://api.github.com/users/qivicon/orgs","repos_url":"https://api.github.com/users/qivicon/repos","events_url":"https://api.github.com/users/qivicon/events{/privacy}","received_events_url":"https://api.github.com/users/qivicon/received_events","type":"Organization","site_admin":false},"repo":{"id":17598413,"name":"smarthome","full_name":"qivicon/smarthome","owner":{"login":"qivicon","id":3966591,"avatar_url":"https://avatars.githubusercontent.com/u/3966591?v=3","gravatar_id":"","url":"https://api.github.com/users/qivicon","html_url":"https://github.com/qivicon","followers_url":"https://api.github.com/users/qivicon/followers","following_url":"https://api.github.com/users/qivicon/following{/other_user}","gists_url":"https://api.github.com/users/qivicon/gists{/gist_id}","starred_url":"https://api.github.com/users/qivicon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qivicon/subscriptions","organizations_url":"https://api.github.com/users/qivicon/orgs","repos_url":"https://api.github.com/users/qivicon/repos","events_url":"https://api.github.com/users/qivicon/events{/privacy}","received_events_url":"https://api.github.com/users/qivicon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qivicon/smarthome","description":"Eclipse SmartHome project","fork":true,"url":"https://api.github.com/repos/qivicon/smarthome","forks_url":"https://api.github.com/repos/qivicon/smarthome/forks","keys_url":"https://api.github.com/repos/qivicon/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qivicon/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qivicon/smarthome/teams","hooks_url":"https://api.github.com/repos/qivicon/smarthome/hooks","issue_events_url":"https://api.github.com/repos/qivicon/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/qivicon/smarthome/events","assignees_url":"https://api.github.com/repos/qivicon/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/qivicon/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/qivicon/smarthome/tags","blobs_url":"https://api.github.com/repos/qivicon/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qivicon/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qivicon/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/qivicon/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qivicon/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/qivicon/smarthome/languages","stargazers_url":"https://api.github.com/repos/qivicon/smarthome/stargazers","contributors_url":"https://api.github.com/repos/qivicon/smarthome/contributors","subscribers_url":"https://api.github.com/repos/qivicon/smarthome/subscribers","subscription_url":"https://api.github.com/repos/qivicon/smarthome/subscription","commits_url":"https://api.github.com/repos/qivicon/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/qivicon/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/qivicon/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/qivicon/smarthome/issues/comments/{number}","contents_url":"https://api.github.com/repos/qivicon/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/qivicon/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qivicon/smarthome/merges","archive_url":"https://api.github.com/repos/qivicon/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qivicon/smarthome/downloads","issues_url":"https://api.github.com/repos/qivicon/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/qivicon/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/qivicon/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/qivicon/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qivicon/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/qivicon/smarthome/releases{/id}","created_at":"2014-03-10T15:53:08Z","updated_at":"2015-01-09T13:37:39Z","pushed_at":"2015-01-09T13:59:40Z","git_url":"git://github.com/qivicon/smarthome.git","ssh_url":"git@github.com:qivicon/smarthome.git","clone_url":"https://github.com/qivicon/smarthome.git","svn_url":"https://github.com/qivicon/smarthome","homepage":null,"size":11108,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"qivicon:master","ref":"master","sha":"e66b50a3049ef692d8de1590034b0cb1394dc67d","user":{"login":"qivicon","id":3966591,"avatar_url":"https://avatars.githubusercontent.com/u/3966591?v=3","gravatar_id":"","url":"https://api.github.com/users/qivicon","html_url":"https://github.com/qivicon","followers_url":"https://api.github.com/users/qivicon/followers","following_url":"https://api.github.com/users/qivicon/following{/other_user}","gists_url":"https://api.github.com/users/qivicon/gists{/gist_id}","starred_url":"https://api.github.com/users/qivicon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qivicon/subscriptions","organizations_url":"https://api.github.com/users/qivicon/orgs","repos_url":"https://api.github.com/users/qivicon/repos","events_url":"https://api.github.com/users/qivicon/events{/privacy}","received_events_url":"https://api.github.com/users/qivicon/received_events","type":"Organization","site_admin":false},"repo":{"id":17598413,"name":"smarthome","full_name":"qivicon/smarthome","owner":{"login":"qivicon","id":3966591,"avatar_url":"https://avatars.githubusercontent.com/u/3966591?v=3","gravatar_id":"","url":"https://api.github.com/users/qivicon","html_url":"https://github.com/qivicon","followers_url":"https://api.github.com/users/qivicon/followers","following_url":"https://api.github.com/users/qivicon/following{/other_user}","gists_url":"https://api.github.com/users/qivicon/gists{/gist_id}","starred_url":"https://api.github.com/users/qivicon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qivicon/subscriptions","organizations_url":"https://api.github.com/users/qivicon/orgs","repos_url":"https://api.github.com/users/qivicon/repos","events_url":"https://api.github.com/users/qivicon/events{/privacy}","received_events_url":"https://api.github.com/users/qivicon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qivicon/smarthome","description":"Eclipse SmartHome project","fork":true,"url":"https://api.github.com/repos/qivicon/smarthome","forks_url":"https://api.github.com/repos/qivicon/smarthome/forks","keys_url":"https://api.github.com/repos/qivicon/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qivicon/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qivicon/smarthome/teams","hooks_url":"https://api.github.com/repos/qivicon/smarthome/hooks","issue_events_url":"https://api.github.com/repos/qivicon/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/qivicon/smarthome/events","assignees_url":"https://api.github.com/repos/qivicon/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/qivicon/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/qivicon/smarthome/tags","blobs_url":"https://api.github.com/repos/qivicon/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qivicon/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qivicon/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/qivicon/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qivicon/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/qivicon/smarthome/languages","stargazers_url":"https://api.github.com/repos/qivicon/smarthome/stargazers","contributors_url":"https://api.github.com/repos/qivicon/smarthome/contributors","subscribers_url":"https://api.github.com/repos/qivicon/smarthome/subscribers","subscription_url":"https://api.github.com/repos/qivicon/smarthome/subscription","commits_url":"https://api.github.com/repos/qivicon/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/qivicon/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/qivicon/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/qivicon/smarthome/issues/comments/{number}","contents_url":"https://api.github.com/repos/qivicon/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/qivicon/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qivicon/smarthome/merges","archive_url":"https://api.github.com/repos/qivicon/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qivicon/smarthome/downloads","issues_url":"https://api.github.com/repos/qivicon/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/qivicon/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/qivicon/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/qivicon/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qivicon/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/qivicon/smarthome/releases{/id}","created_at":"2014-03-10T15:53:08Z","updated_at":"2015-01-09T13:37:39Z","pushed_at":"2015-01-09T13:59:40Z","git_url":"git://github.com/qivicon/smarthome.git","ssh_url":"git@github.com:qivicon/smarthome.git","clone_url":"https://github.com/qivicon/smarthome.git","svn_url":"https://github.com/qivicon/smarthome","homepage":null,"size":11108,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qivicon/smarthome/pulls/16"},"html":{"href":"https://github.com/qivicon/smarthome/pull/16"},"issue":{"href":"https://api.github.com/repos/qivicon/smarthome/issues/16"},"comments":{"href":"https://api.github.com/repos/qivicon/smarthome/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/qivicon/smarthome/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/qivicon/smarthome/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/qivicon/smarthome/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/qivicon/smarthome/statuses/8334b26f3be34d6686ed1c6cfd30b61a084eb274"}}}}