{"action":"created","comment":{"url":"https://api.github.com/repos/CESNET/perun/pulls/comments/41985787","id":41985787,"diff_hunk":"@@ -289,25 +337,26 @@ public void deleteAllGroups(PerunSession sess, Vo vo) throws InternalErrorExcept\n \t\t\t\t// Do not delete built-in groups, they must be deleted using separate functions deleteMembersGroup\n \t\t\t\tcontinue;\n \t\t\t}\n-\t\t\tList<Resource> assignedResources  = getPerunBl().getResourcesManagerBl().getAssignedResources(sess, group);\n+\t\t\tList<Resource> assignedResources = getPerunBl().getResourcesManagerBl().getAssignedResources(sess, group);\n \t\t\ttry {\n-\t\t\t\tfor(Resource resource : assignedResources) {\n+\t\t\t\tfor (Resource resource : assignedResources) {\n \t\t\t\t\tgetPerunBl().getResourcesManagerBl().removeGroupFromResource(sess, group, resource);\n \t\t\t\t\tgetPerunBl().getAttributesManagerBl().removeAllAttributes(sess, resource, group);\n \t\t\t\t}\n \t\t\t\t//remove group's attributes\n \t\t\t\tgetPerunBl().getAttributesManagerBl().removeAllAttributes(sess, group);\n-\t\t\t} catch(GroupNotDefinedOnResourceException ex) {\n+\t\t\t} catch (GroupNotDefinedOnResourceException ex) {\n \t\t\t\tthrow new ConsistencyErrorException(ex);\n-\t\t\t} catch(AttributeValueException ex) {\n-\t\t\t\tthrow new ConsistencyErrorException(\"All resources was removed from this group. So all attributes values can be removed.\", ex);\n+\t\t\t} catch (AttributeValueException ex) {\n+\t\t\t\tthrow new ConsistencyErrorException(\"All resources were removed from this group. So all attributes values can be removed.\", ex);\n \t\t\t} catch (WrongAttributeAssignmentException ex) {\n \t\t\t\tthrow new InternalErrorException(ex);\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tthis.deleteGroup(sess, group, true);\n-\t\t\t} catch (RelationExistsException e) {\n+\t\t\t} catch (RelationExistsException | WrongReferenceAttributeValueException | AlreadyMemberException |","path":"perun-core/src/main/java/cz/metacentrum/perun/core/blImpl/GroupsManagerBlImpl.java","position":215,"original_position":215,"commit_id":"c6531ba1d3b36053ac85903a6cb8306aef99befc","original_commit_id":"c6531ba1d3b36053ac85903a6cb8306aef99befc","user":{"login":"stavamichal","id":5602147,"avatar_url":"https://avatars.githubusercontent.com/u/5602147?v=3","gravatar_id":"","url":"https://api.github.com/users/stavamichal","html_url":"https://github.com/stavamichal","followers_url":"https://api.github.com/users/stavamichal/followers","following_url":"https://api.github.com/users/stavamichal/following{/other_user}","gists_url":"https://api.github.com/users/stavamichal/gists{/gist_id}","starred_url":"https://api.github.com/users/stavamichal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stavamichal/subscriptions","organizations_url":"https://api.github.com/users/stavamichal/orgs","repos_url":"https://api.github.com/users/stavamichal/repos","events_url":"https://api.github.com/users/stavamichal/events{/privacy}","received_events_url":"https://api.github.com/users/stavamichal/received_events","type":"User","site_admin":false},"body":"GroupOperationException","created_at":"2015-10-14T12:16:46Z","updated_at":"2015-10-14T12:16:46Z","html_url":"https://github.com/CESNET/perun/pull/997#discussion_r41985787","pull_request_url":"https://api.github.com/repos/CESNET/perun/pulls/997","_links":{"self":{"href":"https://api.github.com/repos/CESNET/perun/pulls/comments/41985787"},"html":{"href":"https://github.com/CESNET/perun/pull/997#discussion_r41985787"},"pull_request":{"href":"https://api.github.com/repos/CESNET/perun/pulls/997"}}},"pull_request":{"url":"https://api.github.com/repos/CESNET/perun/pulls/997","id":47342314,"html_url":"https://github.com/CESNET/perun/pull/997","diff_url":"https://github.com/CESNET/perun/pull/997.diff","patch_url":"https://github.com/CESNET/perun/pull/997.patch","issue_url":"https://api.github.com/repos/CESNET/perun/issues/997","number":997,"state":"open","locked":false,"title":"Group arithmetic operations","user":{"login":"Simcsa","id":6998265,"avatar_url":"https://avatars.githubusercontent.com/u/6998265?v=3","gravatar_id":"","url":"https://api.github.com/users/Simcsa","html_url":"https://github.com/Simcsa","followers_url":"https://api.github.com/users/Simcsa/followers","following_url":"https://api.github.com/users/Simcsa/following{/other_user}","gists_url":"https://api.github.com/users/Simcsa/gists{/gist_id}","starred_url":"https://api.github.com/users/Simcsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simcsa/subscriptions","organizations_url":"https://api.github.com/users/Simcsa/orgs","repos_url":"https://api.github.com/users/Simcsa/repos","events_url":"https://api.github.com/users/Simcsa/events{/privacy}","received_events_url":"https://api.github.com/users/Simcsa/received_events","type":"User","site_admin":false},"body":"- group union and group difference operations implemented\r\n- added tables for groups_groups and groups_operations\r\n- added logic for creating and deleting relations between groups\r\n- changed methods for adding/removing members into/from groups and getting\r\n  members\r\n- changed methods for removing groups\r\n- created tests","created_at":"2015-10-10T09:56:41Z","updated_at":"2015-10-14T12:16:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"726e60dcc05d31f1ebc7e656804748fd67eb2b6a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CESNET/perun/pulls/997/commits","review_comments_url":"https://api.github.com/repos/CESNET/perun/pulls/997/comments","review_comment_url":"https://api.github.com/repos/CESNET/perun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CESNET/perun/issues/997/comments","statuses_url":"https://api.github.com/repos/CESNET/perun/statuses/c6531ba1d3b36053ac85903a6cb8306aef99befc","head":{"label":"Simcsa:groupOperations","ref":"groupOperations","sha":"c6531ba1d3b36053ac85903a6cb8306aef99befc","user":{"login":"Simcsa","id":6998265,"avatar_url":"https://avatars.githubusercontent.com/u/6998265?v=3","gravatar_id":"","url":"https://api.github.com/users/Simcsa","html_url":"https://github.com/Simcsa","followers_url":"https://api.github.com/users/Simcsa/followers","following_url":"https://api.github.com/users/Simcsa/following{/other_user}","gists_url":"https://api.github.com/users/Simcsa/gists{/gist_id}","starred_url":"https://api.github.com/users/Simcsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simcsa/subscriptions","organizations_url":"https://api.github.com/users/Simcsa/orgs","repos_url":"https://api.github.com/users/Simcsa/repos","events_url":"https://api.github.com/users/Simcsa/events{/privacy}","received_events_url":"https://api.github.com/users/Simcsa/received_events","type":"User","site_admin":false},"repo":{"id":20881239,"name":"perun","full_name":"Simcsa/perun","owner":{"login":"Simcsa","id":6998265,"avatar_url":"https://avatars.githubusercontent.com/u/6998265?v=3","gravatar_id":"","url":"https://api.github.com/users/Simcsa","html_url":"https://github.com/Simcsa","followers_url":"https://api.github.com/users/Simcsa/followers","following_url":"https://api.github.com/users/Simcsa/following{/other_user}","gists_url":"https://api.github.com/users/Simcsa/gists{/gist_id}","starred_url":"https://api.github.com/users/Simcsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simcsa/subscriptions","organizations_url":"https://api.github.com/users/Simcsa/orgs","repos_url":"https://api.github.com/users/Simcsa/repos","events_url":"https://api.github.com/users/Simcsa/events{/privacy}","received_events_url":"https://api.github.com/users/Simcsa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Simcsa/perun","description":"Users, Groups, Services and Resources Management System","fork":true,"url":"https://api.github.com/repos/Simcsa/perun","forks_url":"https://api.github.com/repos/Simcsa/perun/forks","keys_url":"https://api.github.com/repos/Simcsa/perun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Simcsa/perun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Simcsa/perun/teams","hooks_url":"https://api.github.com/repos/Simcsa/perun/hooks","issue_events_url":"https://api.github.com/repos/Simcsa/perun/issues/events{/number}","events_url":"https://api.github.com/repos/Simcsa/perun/events","assignees_url":"https://api.github.com/repos/Simcsa/perun/assignees{/user}","branches_url":"https://api.github.com/repos/Simcsa/perun/branches{/branch}","tags_url":"https://api.github.com/repos/Simcsa/perun/tags","blobs_url":"https://api.github.com/repos/Simcsa/perun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Simcsa/perun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Simcsa/perun/git/refs{/sha}","trees_url":"https://api.github.com/repos/Simcsa/perun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Simcsa/perun/statuses/{sha}","languages_url":"https://api.github.com/repos/Simcsa/perun/languages","stargazers_url":"https://api.github.com/repos/Simcsa/perun/stargazers","contributors_url":"https://api.github.com/repos/Simcsa/perun/contributors","subscribers_url":"https://api.github.com/repos/Simcsa/perun/subscribers","subscription_url":"https://api.github.com/repos/Simcsa/perun/subscription","commits_url":"https://api.github.com/repos/Simcsa/perun/commits{/sha}","git_commits_url":"https://api.github.com/repos/Simcsa/perun/git/commits{/sha}","comments_url":"https://api.github.com/repos/Simcsa/perun/comments{/number}","issue_comment_url":"https://api.github.com/repos/Simcsa/perun/issues/comments{/number}","contents_url":"https://api.github.com/repos/Simcsa/perun/contents/{+path}","compare_url":"https://api.github.com/repos/Simcsa/perun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Simcsa/perun/merges","archive_url":"https://api.github.com/repos/Simcsa/perun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Simcsa/perun/downloads","issues_url":"https://api.github.com/repos/Simcsa/perun/issues{/number}","pulls_url":"https://api.github.com/repos/Simcsa/perun/pulls{/number}","milestones_url":"https://api.github.com/repos/Simcsa/perun/milestones{/number}","notifications_url":"https://api.github.com/repos/Simcsa/perun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Simcsa/perun/labels{/name}","releases_url":"https://api.github.com/repos/Simcsa/perun/releases{/id}","created_at":"2014-06-16T10:36:47Z","updated_at":"2015-04-21T12:49:09Z","pushed_at":"2015-10-10T12:41:39Z","git_url":"git://github.com/Simcsa/perun.git","ssh_url":"git@github.com:Simcsa/perun.git","clone_url":"https://github.com/Simcsa/perun.git","svn_url":"https://github.com/Simcsa/perun","homepage":null,"size":25359,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CESNET:master","ref":"master","sha":"1a9c95223f0be8f2b8920568cc804838bc48bc3b","user":{"login":"CESNET","id":1116469,"avatar_url":"https://avatars.githubusercontent.com/u/1116469?v=3","gravatar_id":"","url":"https://api.github.com/users/CESNET","html_url":"https://github.com/CESNET","followers_url":"https://api.github.com/users/CESNET/followers","following_url":"https://api.github.com/users/CESNET/following{/other_user}","gists_url":"https://api.github.com/users/CESNET/gists{/gist_id}","starred_url":"https://api.github.com/users/CESNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CESNET/subscriptions","organizations_url":"https://api.github.com/users/CESNET/orgs","repos_url":"https://api.github.com/users/CESNET/repos","events_url":"https://api.github.com/users/CESNET/events{/privacy}","received_events_url":"https://api.github.com/users/CESNET/received_events","type":"Organization","site_admin":false},"repo":{"id":4085998,"name":"perun","full_name":"CESNET/perun","owner":{"login":"CESNET","id":1116469,"avatar_url":"https://avatars.githubusercontent.com/u/1116469?v=3","gravatar_id":"","url":"https://api.github.com/users/CESNET","html_url":"https://github.com/CESNET","followers_url":"https://api.github.com/users/CESNET/followers","following_url":"https://api.github.com/users/CESNET/following{/other_user}","gists_url":"https://api.github.com/users/CESNET/gists{/gist_id}","starred_url":"https://api.github.com/users/CESNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CESNET/subscriptions","organizations_url":"https://api.github.com/users/CESNET/orgs","repos_url":"https://api.github.com/users/CESNET/repos","events_url":"https://api.github.com/users/CESNET/events{/privacy}","received_events_url":"https://api.github.com/users/CESNET/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CESNET/perun","description":"Identity and Access Management System","fork":false,"url":"https://api.github.com/repos/CESNET/perun","forks_url":"https://api.github.com/repos/CESNET/perun/forks","keys_url":"https://api.github.com/repos/CESNET/perun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CESNET/perun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CESNET/perun/teams","hooks_url":"https://api.github.com/repos/CESNET/perun/hooks","issue_events_url":"https://api.github.com/repos/CESNET/perun/issues/events{/number}","events_url":"https://api.github.com/repos/CESNET/perun/events","assignees_url":"https://api.github.com/repos/CESNET/perun/assignees{/user}","branches_url":"https://api.github.com/repos/CESNET/perun/branches{/branch}","tags_url":"https://api.github.com/repos/CESNET/perun/tags","blobs_url":"https://api.github.com/repos/CESNET/perun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CESNET/perun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CESNET/perun/git/refs{/sha}","trees_url":"https://api.github.com/repos/CESNET/perun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CESNET/perun/statuses/{sha}","languages_url":"https://api.github.com/repos/CESNET/perun/languages","stargazers_url":"https://api.github.com/repos/CESNET/perun/stargazers","contributors_url":"https://api.github.com/repos/CESNET/perun/contributors","subscribers_url":"https://api.github.com/repos/CESNET/perun/subscribers","subscription_url":"https://api.github.com/repos/CESNET/perun/subscription","commits_url":"https://api.github.com/repos/CESNET/perun/commits{/sha}","git_commits_url":"https://api.github.com/repos/CESNET/perun/git/commits{/sha}","comments_url":"https://api.github.com/repos/CESNET/perun/comments{/number}","issue_comment_url":"https://api.github.com/repos/CESNET/perun/issues/comments{/number}","contents_url":"https://api.github.com/repos/CESNET/perun/contents/{+path}","compare_url":"https://api.github.com/repos/CESNET/perun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CESNET/perun/merges","archive_url":"https://api.github.com/repos/CESNET/perun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CESNET/perun/downloads","issues_url":"https://api.github.com/repos/CESNET/perun/issues{/number}","pulls_url":"https://api.github.com/repos/CESNET/perun/pulls{/number}","milestones_url":"https://api.github.com/repos/CESNET/perun/milestones{/number}","notifications_url":"https://api.github.com/repos/CESNET/perun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CESNET/perun/labels{/name}","releases_url":"https://api.github.com/repos/CESNET/perun/releases{/id}","created_at":"2012-04-20T11:55:38Z","updated_at":"2015-07-29T08:36:39Z","pushed_at":"2015-10-14T12:10:14Z","git_url":"git://github.com/CESNET/perun.git","ssh_url":"git@github.com:CESNET/perun.git","clone_url":"https://github.com/CESNET/perun.git","svn_url":"https://github.com/CESNET/perun","homepage":"http://perun.cesnet.cz","size":31903,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":12,"forks":24,"open_issues":12,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CESNET/perun/pulls/997"},"html":{"href":"https://github.com/CESNET/perun/pull/997"},"issue":{"href":"https://api.github.com/repos/CESNET/perun/issues/997"},"comments":{"href":"https://api.github.com/repos/CESNET/perun/issues/997/comments"},"review_comments":{"href":"https://api.github.com/repos/CESNET/perun/pulls/997/comments"},"review_comment":{"href":"https://api.github.com/repos/CESNET/perun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CESNET/perun/pulls/997/commits"},"statuses":{"href":"https://api.github.com/repos/CESNET/perun/statuses/c6531ba1d3b36053ac85903a6cb8306aef99befc"}}}}