{"action":"created","comment":{"url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/comments/39406784","id":39406784,"diff_hunk":"@@ -298,6 +298,45 @@\n     GroupMembership addGroup(Group group);\n \n     /**\n+     * Assigns this account to the specified Group represented by its (case insensitive) {@code name} or {@code href}\n+     * @param hrefOrName the href or name of the group to add.\n+     *\n+     * <p><b>Immediate Execution:</b> Unlike other Account methods, you do <em>not</em> need to call {@link #save()}\n+     * afterwards. This method will interact with the server immediately.</p>\n+     *\n+     * @return the new GroupMembership resource created reflecting the account-to-group association.\n+     *\n+     * @since 1.0.RC4.6\n+     */\n+    GroupMembership addGroup(String hrefOrName);\n+\n+    /**\n+     * Removes this account from the specified Group.\n+     * @param group the {@code Group} object from where the account must be removed.","path":"api/src/main/java/com/stormpath/sdk/account/Account.java","position":18,"original_position":18,"commit_id":"eed0fd0237f3dcb2d9a32c4d86bcbecf4affbf55","original_commit_id":"eed0fd0237f3dcb2d9a32c4d86bcbecf4affbf55","user":{"login":"mrioan","id":717498,"avatar_url":"https://avatars.githubusercontent.com/u/717498?v=3","gravatar_id":"","url":"https://api.github.com/users/mrioan","html_url":"https://github.com/mrioan","followers_url":"https://api.github.com/users/mrioan/followers","following_url":"https://api.github.com/users/mrioan/following{/other_user}","gists_url":"https://api.github.com/users/mrioan/gists{/gist_id}","starred_url":"https://api.github.com/users/mrioan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrioan/subscriptions","organizations_url":"https://api.github.com/users/mrioan/orgs","repos_url":"https://api.github.com/users/mrioan/repos","events_url":"https://api.github.com/users/mrioan/events{/privacy}","received_events_url":"https://api.github.com/users/mrioan/received_events","type":"User","site_admin":false},"body":"Idem previous comment","created_at":"2015-09-14T15:21:28Z","updated_at":"2015-09-14T15:21:28Z","html_url":"https://github.com/stormpath/stormpath-sdk-java/pull/258#discussion_r39406784","pull_request_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258","_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/comments/39406784"},"html":{"href":"https://github.com/stormpath/stormpath-sdk-java/pull/258#discussion_r39406784"},"pull_request":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258"}}},"pull_request":{"url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258","id":42506850,"html_url":"https://github.com/stormpath/stormpath-sdk-java/pull/258","diff_url":"https://github.com/stormpath/stormpath-sdk-java/pull/258.diff","patch_url":"https://github.com/stormpath/stormpath-sdk-java/pull/258.patch","issue_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/258","number":258,"state":"open","locked":false,"title":"220 simplify accounts groups","user":{"login":"maranai","id":2465107,"avatar_url":"https://avatars.githubusercontent.com/u/2465107?v=3","gravatar_id":"","url":"https://api.github.com/users/maranai","html_url":"https://github.com/maranai","followers_url":"https://api.github.com/users/maranai/followers","following_url":"https://api.github.com/users/maranai/following{/other_user}","gists_url":"https://api.github.com/users/maranai/gists{/gist_id}","starred_url":"https://api.github.com/users/maranai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maranai/subscriptions","organizations_url":"https://api.github.com/users/maranai/orgs","repos_url":"https://api.github.com/users/maranai/repos","events_url":"https://api.github.com/users/maranai/events{/privacy}","received_events_url":"https://api.github.com/users/maranai/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-14T23:21:16Z","updated_at":"2015-09-14T15:21:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c1d261d805bc9210bf093d62064f6401b76cd24","assignee":{"login":"mrioan","id":717498,"avatar_url":"https://avatars.githubusercontent.com/u/717498?v=3","gravatar_id":"","url":"https://api.github.com/users/mrioan","html_url":"https://github.com/mrioan","followers_url":"https://api.github.com/users/mrioan/followers","following_url":"https://api.github.com/users/mrioan/following{/other_user}","gists_url":"https://api.github.com/users/mrioan/gists{/gist_id}","starred_url":"https://api.github.com/users/mrioan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrioan/subscriptions","organizations_url":"https://api.github.com/users/mrioan/orgs","repos_url":"https://api.github.com/users/mrioan/repos","events_url":"https://api.github.com/users/mrioan/events{/privacy}","received_events_url":"https://api.github.com/users/mrioan/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258/commits","review_comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258/comments","review_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/258/comments","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/statuses/eed0fd0237f3dcb2d9a32c4d86bcbecf4affbf55","head":{"label":"stormpath:220_simplify_accounts_groups","ref":"220_simplify_accounts_groups","sha":"eed0fd0237f3dcb2d9a32c4d86bcbecf4affbf55","user":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"repo":{"id":3913468,"name":"stormpath-sdk-java","full_name":"stormpath/stormpath-sdk-java","owner":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stormpath/stormpath-sdk-java","description":"Official Java SDK for the Stormpath User Management REST API","fork":false,"url":"https://api.github.com/repos/stormpath/stormpath-sdk-java","forks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/forks","keys_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/teams","hooks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/hooks","issue_events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/events{/number}","events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/events","assignees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/assignees{/user}","branches_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/branches{/branch}","tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/tags","blobs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/statuses/{sha}","languages_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/languages","stargazers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/stargazers","contributors_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/contributors","subscribers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/subscribers","subscription_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/subscription","commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/contents/{+path}","compare_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/merges","archive_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/downloads","issues_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues{/number}","pulls_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls{/number}","milestones_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/milestones{/number}","notifications_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/labels{/name}","releases_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/releases{/id}","created_at":"2012-04-03T01:22:09Z","updated_at":"2015-09-09T03:14:19Z","pushed_at":"2015-09-14T14:47:52Z","git_url":"git://github.com/stormpath/stormpath-sdk-java.git","ssh_url":"git@github.com:stormpath/stormpath-sdk-java.git","clone_url":"https://github.com/stormpath/stormpath-sdk-java.git","svn_url":"https://github.com/stormpath/stormpath-sdk-java","homepage":"","size":13338,"stargazers_count":56,"watchers_count":56,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":81,"forks":32,"open_issues":81,"watchers":56,"default_branch":"master"}},"base":{"label":"stormpath:master","ref":"master","sha":"8b6b28e05e3fdf44d46f6916e3cef2dbc7820377","user":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"repo":{"id":3913468,"name":"stormpath-sdk-java","full_name":"stormpath/stormpath-sdk-java","owner":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stormpath/stormpath-sdk-java","description":"Official Java SDK for the Stormpath User Management REST API","fork":false,"url":"https://api.github.com/repos/stormpath/stormpath-sdk-java","forks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/forks","keys_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/teams","hooks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/hooks","issue_events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/events{/number}","events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/events","assignees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/assignees{/user}","branches_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/branches{/branch}","tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/tags","blobs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/statuses/{sha}","languages_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/languages","stargazers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/stargazers","contributors_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/contributors","subscribers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/subscribers","subscription_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/subscription","commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/contents/{+path}","compare_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/merges","archive_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/downloads","issues_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues{/number}","pulls_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls{/number}","milestones_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/milestones{/number}","notifications_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/labels{/name}","releases_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/releases{/id}","created_at":"2012-04-03T01:22:09Z","updated_at":"2015-09-09T03:14:19Z","pushed_at":"2015-09-14T14:47:52Z","git_url":"git://github.com/stormpath/stormpath-sdk-java.git","ssh_url":"git@github.com:stormpath/stormpath-sdk-java.git","clone_url":"https://github.com/stormpath/stormpath-sdk-java.git","svn_url":"https://github.com/stormpath/stormpath-sdk-java","homepage":"","size":13338,"stargazers_count":56,"watchers_count":56,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":81,"forks":32,"open_issues":81,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258"},"html":{"href":"https://github.com/stormpath/stormpath-sdk-java/pull/258"},"issue":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/258"},"comments":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/258/comments"},"review_comments":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258/comments"},"review_comment":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/pulls/258/commits"},"statuses":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-java/statuses/eed0fd0237f3dcb2d9a32c4d86bcbecf4affbf55"}}}}