{"action":"created","comment":{"url":"https://api.github.com/repos/uberfire/uberfire/pulls/comments/69471426","id":69471426,"diff_hunk":"@@ -0,0 +1,46 @@\n+/*\n+ * Copyright 2016 Red Hat, Inc. and/or its affiliates.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *       http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.uberfire.ext.services.shared.preferences.scoped;\n+\n+import org.uberfire.ext.services.shared.preferences.scoped.impl.exception.InvalidPreferenceScopeException;\n+\n+/**\n+ * Builder for new preference scope creation.\n+ */\n+public interface PreferenceScopeBuilder {\n+\n+    /**\n+     * Builds a new preference scope, that does not require a custom key.\n+     * If the type passed requires a custom key, a exception is thrown.\n+     * @param type Type of the new preference scope.\n+     * @return A new preference scope.\n+     * @throws InvalidPreferenceScopeException","path":"uberfire-extensions/uberfire-widgets/uberfire-widgets-service/uberfire-widgets-service-api/src/main/java/org/uberfire/ext/services/shared/preferences/scoped/PreferenceScopeBuilder.java","position":31,"original_position":31,"commit_id":"85c35fa34eb09901f10fc181a3d052c64869802a","original_commit_id":"85c35fa34eb09901f10fc181a3d052c64869802a","user":{"login":"csadilek","id":472523,"avatar_url":"https://avatars.githubusercontent.com/u/472523?v=3","gravatar_id":"","url":"https://api.github.com/users/csadilek","html_url":"https://github.com/csadilek","followers_url":"https://api.github.com/users/csadilek/followers","following_url":"https://api.github.com/users/csadilek/following{/other_user}","gists_url":"https://api.github.com/users/csadilek/gists{/gist_id}","starred_url":"https://api.github.com/users/csadilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csadilek/subscriptions","organizations_url":"https://api.github.com/users/csadilek/orgs","repos_url":"https://api.github.com/users/csadilek/repos","events_url":"https://api.github.com/users/csadilek/events{/privacy}","received_events_url":"https://api.github.com/users/csadilek/received_events","type":"User","site_admin":false},"body":"throws InvalidPreferenceScopeException, if....","created_at":"2016-07-04T15:21:42Z","updated_at":"2016-07-04T15:21:42Z","html_url":"https://github.com/uberfire/uberfire/pull/430#discussion_r69471426","pull_request_url":"https://api.github.com/repos/uberfire/uberfire/pulls/430","_links":{"self":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/comments/69471426"},"html":{"href":"https://github.com/uberfire/uberfire/pull/430#discussion_r69471426"},"pull_request":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/430"}}},"pull_request":{"url":"https://api.github.com/repos/uberfire/uberfire/pulls/430","id":75995786,"html_url":"https://github.com/uberfire/uberfire/pull/430","diff_url":"https://github.com/uberfire/uberfire/pull/430.diff","patch_url":"https://github.com/uberfire/uberfire/pull/430.patch","issue_url":"https://api.github.com/repos/uberfire/uberfire/issues/430","number":430,"state":"open","locked":false,"title":"UF-318: Preferences Store API","user":{"login":"paulovmr","id":832830,"avatar_url":"https://avatars.githubusercontent.com/u/832830?v=3","gravatar_id":"","url":"https://api.github.com/users/paulovmr","html_url":"https://github.com/paulovmr","followers_url":"https://api.github.com/users/paulovmr/followers","following_url":"https://api.github.com/users/paulovmr/following{/other_user}","gists_url":"https://api.github.com/users/paulovmr/gists{/gist_id}","starred_url":"https://api.github.com/users/paulovmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulovmr/subscriptions","organizations_url":"https://api.github.com/users/paulovmr/orgs","repos_url":"https://api.github.com/users/paulovmr/repos","events_url":"https://api.github.com/users/paulovmr/events{/privacy}","received_events_url":"https://api.github.com/users/paulovmr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-01T15:18:15Z","updated_at":"2016-07-04T15:21:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f4e5164d6f2ab6107060dab26f42ab1894458bc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uberfire/uberfire/pulls/430/commits","review_comments_url":"https://api.github.com/repos/uberfire/uberfire/pulls/430/comments","review_comment_url":"https://api.github.com/repos/uberfire/uberfire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uberfire/uberfire/issues/430/comments","statuses_url":"https://api.github.com/repos/uberfire/uberfire/statuses/85c35fa34eb09901f10fc181a3d052c64869802a","head":{"label":"paulovmr:UF-318-master","ref":"UF-318-master","sha":"85c35fa34eb09901f10fc181a3d052c64869802a","user":{"login":"paulovmr","id":832830,"avatar_url":"https://avatars.githubusercontent.com/u/832830?v=3","gravatar_id":"","url":"https://api.github.com/users/paulovmr","html_url":"https://github.com/paulovmr","followers_url":"https://api.github.com/users/paulovmr/followers","following_url":"https://api.github.com/users/paulovmr/following{/other_user}","gists_url":"https://api.github.com/users/paulovmr/gists{/gist_id}","starred_url":"https://api.github.com/users/paulovmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulovmr/subscriptions","organizations_url":"https://api.github.com/users/paulovmr/orgs","repos_url":"https://api.github.com/users/paulovmr/repos","events_url":"https://api.github.com/users/paulovmr/events{/privacy}","received_events_url":"https://api.github.com/users/paulovmr/received_events","type":"User","site_admin":false},"repo":{"id":52789425,"name":"uberfire","full_name":"paulovmr/uberfire","owner":{"login":"paulovmr","id":832830,"avatar_url":"https://avatars.githubusercontent.com/u/832830?v=3","gravatar_id":"","url":"https://api.github.com/users/paulovmr","html_url":"https://github.com/paulovmr","followers_url":"https://api.github.com/users/paulovmr/followers","following_url":"https://api.github.com/users/paulovmr/following{/other_user}","gists_url":"https://api.github.com/users/paulovmr/gists{/gist_id}","starred_url":"https://api.github.com/users/paulovmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulovmr/subscriptions","organizations_url":"https://api.github.com/users/paulovmr/orgs","repos_url":"https://api.github.com/users/paulovmr/repos","events_url":"https://api.github.com/users/paulovmr/events{/privacy}","received_events_url":"https://api.github.com/users/paulovmr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulovmr/uberfire","description":"UberFire Framework","fork":true,"url":"https://api.github.com/repos/paulovmr/uberfire","forks_url":"https://api.github.com/repos/paulovmr/uberfire/forks","keys_url":"https://api.github.com/repos/paulovmr/uberfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulovmr/uberfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulovmr/uberfire/teams","hooks_url":"https://api.github.com/repos/paulovmr/uberfire/hooks","issue_events_url":"https://api.github.com/repos/paulovmr/uberfire/issues/events{/number}","events_url":"https://api.github.com/repos/paulovmr/uberfire/events","assignees_url":"https://api.github.com/repos/paulovmr/uberfire/assignees{/user}","branches_url":"https://api.github.com/repos/paulovmr/uberfire/branches{/branch}","tags_url":"https://api.github.com/repos/paulovmr/uberfire/tags","blobs_url":"https://api.github.com/repos/paulovmr/uberfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulovmr/uberfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulovmr/uberfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulovmr/uberfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulovmr/uberfire/statuses/{sha}","languages_url":"https://api.github.com/repos/paulovmr/uberfire/languages","stargazers_url":"https://api.github.com/repos/paulovmr/uberfire/stargazers","contributors_url":"https://api.github.com/repos/paulovmr/uberfire/contributors","subscribers_url":"https://api.github.com/repos/paulovmr/uberfire/subscribers","subscription_url":"https://api.github.com/repos/paulovmr/uberfire/subscription","commits_url":"https://api.github.com/repos/paulovmr/uberfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulovmr/uberfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulovmr/uberfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulovmr/uberfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulovmr/uberfire/contents/{+path}","compare_url":"https://api.github.com/repos/paulovmr/uberfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulovmr/uberfire/merges","archive_url":"https://api.github.com/repos/paulovmr/uberfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulovmr/uberfire/downloads","issues_url":"https://api.github.com/repos/paulovmr/uberfire/issues{/number}","pulls_url":"https://api.github.com/repos/paulovmr/uberfire/pulls{/number}","milestones_url":"https://api.github.com/repos/paulovmr/uberfire/milestones{/number}","notifications_url":"https://api.github.com/repos/paulovmr/uberfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulovmr/uberfire/labels{/name}","releases_url":"https://api.github.com/repos/paulovmr/uberfire/releases{/id}","deployments_url":"https://api.github.com/repos/paulovmr/uberfire/deployments","created_at":"2016-02-29T12:29:24Z","updated_at":"2016-02-29T12:29:28Z","pushed_at":"2016-07-01T15:27:01Z","git_url":"git://github.com/paulovmr/uberfire.git","ssh_url":"git@github.com:paulovmr/uberfire.git","clone_url":"https://github.com/paulovmr/uberfire.git","svn_url":"https://github.com/paulovmr/uberfire","homepage":"http://www.uberfireframework.org","size":34524,"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":"uberfire:master","ref":"master","sha":"e940543abd3759d56df5c32a46b57e118b1e0dd5","user":{"login":"uberfire","id":5167699,"avatar_url":"https://avatars.githubusercontent.com/u/5167699?v=3","gravatar_id":"","url":"https://api.github.com/users/uberfire","html_url":"https://github.com/uberfire","followers_url":"https://api.github.com/users/uberfire/followers","following_url":"https://api.github.com/users/uberfire/following{/other_user}","gists_url":"https://api.github.com/users/uberfire/gists{/gist_id}","starred_url":"https://api.github.com/users/uberfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uberfire/subscriptions","organizations_url":"https://api.github.com/users/uberfire/orgs","repos_url":"https://api.github.com/users/uberfire/repos","events_url":"https://api.github.com/users/uberfire/events{/privacy}","received_events_url":"https://api.github.com/users/uberfire/received_events","type":"Organization","site_admin":false},"repo":{"id":4335576,"name":"uberfire","full_name":"uberfire/uberfire","owner":{"login":"uberfire","id":5167699,"avatar_url":"https://avatars.githubusercontent.com/u/5167699?v=3","gravatar_id":"","url":"https://api.github.com/users/uberfire","html_url":"https://github.com/uberfire","followers_url":"https://api.github.com/users/uberfire/followers","following_url":"https://api.github.com/users/uberfire/following{/other_user}","gists_url":"https://api.github.com/users/uberfire/gists{/gist_id}","starred_url":"https://api.github.com/users/uberfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uberfire/subscriptions","organizations_url":"https://api.github.com/users/uberfire/orgs","repos_url":"https://api.github.com/users/uberfire/repos","events_url":"https://api.github.com/users/uberfire/events{/privacy}","received_events_url":"https://api.github.com/users/uberfire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uberfire/uberfire","description":"UberFire Framework","fork":false,"url":"https://api.github.com/repos/uberfire/uberfire","forks_url":"https://api.github.com/repos/uberfire/uberfire/forks","keys_url":"https://api.github.com/repos/uberfire/uberfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uberfire/uberfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uberfire/uberfire/teams","hooks_url":"https://api.github.com/repos/uberfire/uberfire/hooks","issue_events_url":"https://api.github.com/repos/uberfire/uberfire/issues/events{/number}","events_url":"https://api.github.com/repos/uberfire/uberfire/events","assignees_url":"https://api.github.com/repos/uberfire/uberfire/assignees{/user}","branches_url":"https://api.github.com/repos/uberfire/uberfire/branches{/branch}","tags_url":"https://api.github.com/repos/uberfire/uberfire/tags","blobs_url":"https://api.github.com/repos/uberfire/uberfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uberfire/uberfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uberfire/uberfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/uberfire/uberfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uberfire/uberfire/statuses/{sha}","languages_url":"https://api.github.com/repos/uberfire/uberfire/languages","stargazers_url":"https://api.github.com/repos/uberfire/uberfire/stargazers","contributors_url":"https://api.github.com/repos/uberfire/uberfire/contributors","subscribers_url":"https://api.github.com/repos/uberfire/uberfire/subscribers","subscription_url":"https://api.github.com/repos/uberfire/uberfire/subscription","commits_url":"https://api.github.com/repos/uberfire/uberfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/uberfire/uberfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/uberfire/uberfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/uberfire/uberfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/uberfire/uberfire/contents/{+path}","compare_url":"https://api.github.com/repos/uberfire/uberfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uberfire/uberfire/merges","archive_url":"https://api.github.com/repos/uberfire/uberfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uberfire/uberfire/downloads","issues_url":"https://api.github.com/repos/uberfire/uberfire/issues{/number}","pulls_url":"https://api.github.com/repos/uberfire/uberfire/pulls{/number}","milestones_url":"https://api.github.com/repos/uberfire/uberfire/milestones{/number}","notifications_url":"https://api.github.com/repos/uberfire/uberfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uberfire/uberfire/labels{/name}","releases_url":"https://api.github.com/repos/uberfire/uberfire/releases{/id}","deployments_url":"https://api.github.com/repos/uberfire/uberfire/deployments","created_at":"2012-05-15T12:40:55Z","updated_at":"2016-06-24T23:34:55Z","pushed_at":"2016-07-04T14:55:13Z","git_url":"git://github.com/uberfire/uberfire.git","ssh_url":"git@github.com:uberfire/uberfire.git","clone_url":"https://github.com/uberfire/uberfire.git","svn_url":"https://github.com/uberfire/uberfire","homepage":"http://www.uberfireframework.org","size":41064,"stargazers_count":61,"watchers_count":61,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":2,"forks":94,"open_issues":2,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/430"},"html":{"href":"https://github.com/uberfire/uberfire/pull/430"},"issue":{"href":"https://api.github.com/repos/uberfire/uberfire/issues/430"},"comments":{"href":"https://api.github.com/repos/uberfire/uberfire/issues/430/comments"},"review_comments":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/430/comments"},"review_comment":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/430/commits"},"statuses":{"href":"https://api.github.com/repos/uberfire/uberfire/statuses/85c35fa34eb09901f10fc181a3d052c64869802a"}}}}
{"actor":{"display_login":"csadilek"}}