{"action":"created","comment":{"url":"https://api.github.com/repos/exo-addons/gamification/pulls/comments/198830847","pull_request_review_id":132830015,"id":198830847,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODgzMDg0Nw==","diff_hunk":"@@ -0,0 +1,205 @@\n+package org.exoplatform.addons.gamification.rest;\n+\n+import org.exoplatform.commons.utils.CommonsUtils;\n+import org.exoplatform.addons.gamification.service.configuration.RuleService;\n+import org.exoplatform.addons.gamification.service.dto.configuration.RuleDTO;\n+import org.exoplatform.services.log.ExoLogger;\n+import org.exoplatform.services.log.Log;\n+import org.exoplatform.services.rest.resource.ResourceContainer;\n+import org.exoplatform.services.security.ConversationState;\n+\n+import javax.annotation.security.RolesAllowed;\n+import javax.servlet.http.HttpServletRequest;\n+import javax.ws.rs.*;\n+import javax.ws.rs.core.*;\n+import java.util.Date;\n+import java.util.List;\n+import java.util.Locale;\n+\n+@Path(\"/gamification/rules\")\n+@Produces(MediaType.APPLICATION_JSON)\n+public class ManageRulesEndpoint implements ResourceContainer {\n+\n+    private static final Log LOG = ExoLogger.getLogger(ManageRulesEndpoint.class);\n+\n+    private final CacheControl cacheControl;\n+\n+    protected RuleService ruleService = null;\n+\n+    public ManageRulesEndpoint() {\n+\n+        this.cacheControl = new CacheControl();\n+\n+        cacheControl.setNoCache(true);\n+\n+        cacheControl.setNoStore(true);\n+\n+        ruleService = CommonsUtils.getService(RuleService.class);","path":"services/src/main/java/org/exoplatform/addons/gamification/rest/ManageRulesEndpoint.java","position":37,"original_position":37,"commit_id":"f63668280f90bcb197478e70867a3032c42f856e","original_commit_id":"8bae23696768ef3efff2a20828eb3694118452cf","user":{"login":"kmenzli","id":1537602,"node_id":"MDQ6VXNlcjE1Mzc2MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1537602?v=4","gravatar_id":"","url":"https://api.github.com/users/kmenzli","html_url":"https://github.com/kmenzli","followers_url":"https://api.github.com/users/kmenzli/followers","following_url":"https://api.github.com/users/kmenzli/following{/other_user}","gists_url":"https://api.github.com/users/kmenzli/gists{/gist_id}","starred_url":"https://api.github.com/users/kmenzli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmenzli/subscriptions","organizations_url":"https://api.github.com/users/kmenzli/orgs","repos_url":"https://api.github.com/users/kmenzli/repos","events_url":"https://api.github.com/users/kmenzli/events{/privacy}","received_events_url":"https://api.github.com/users/kmenzli/received_events","type":"User","site_admin":false},"body":"Next release","created_at":"2018-06-28T13:01:58Z","updated_at":"2018-06-28T13:01:58Z","html_url":"https://github.com/exo-addons/gamification/pull/1#discussion_r198830847","pull_request_url":"https://api.github.com/repos/exo-addons/gamification/pulls/1","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/exo-addons/gamification/pulls/comments/198830847"},"html":{"href":"https://github.com/exo-addons/gamification/pull/1#discussion_r198830847"},"pull_request":{"href":"https://api.github.com/repos/exo-addons/gamification/pulls/1"}},"in_reply_to_id":198427195},"pull_request":{"url":"https://api.github.com/repos/exo-addons/gamification/pulls/1","id":195470114,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NDcwMTE0","html_url":"https://github.com/exo-addons/gamification/pull/1","diff_url":"https://github.com/exo-addons/gamification/pull/1.diff","patch_url":"https://github.com/exo-addons/gamification/pull/1.patch","issue_url":"https://api.github.com/repos/exo-addons/gamification/issues/1","number":1,"state":"open","locked":false,"title":"Review tast to be done by engineering","user":{"login":"kmenzli","id":1537602,"node_id":"MDQ6VXNlcjE1Mzc2MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1537602?v=4","gravatar_id":"","url":"https://api.github.com/users/kmenzli","html_url":"https://github.com/kmenzli","followers_url":"https://api.github.com/users/kmenzli/followers","following_url":"https://api.github.com/users/kmenzli/following{/other_user}","gists_url":"https://api.github.com/users/kmenzli/gists{/gist_id}","starred_url":"https://api.github.com/users/kmenzli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmenzli/subscriptions","organizations_url":"https://api.github.com/users/kmenzli/orgs","repos_url":"https://api.github.com/users/kmenzli/repos","events_url":"https://api.github.com/users/kmenzli/events{/privacy}","received_events_url":"https://api.github.com/users/kmenzli/received_events","type":"User","site_admin":false},"body":"Review tast to be done by engineering","created_at":"2018-06-18T09:40:05Z","updated_at":"2018-06-28T13:01:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c29fc2bfff19bdbd2faa75a27a5521aff795ee09","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/exo-addons/gamification/pulls/1/commits","review_comments_url":"https://api.github.com/repos/exo-addons/gamification/pulls/1/comments","review_comment_url":"https://api.github.com/repos/exo-addons/gamification/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exo-addons/gamification/issues/1/comments","statuses_url":"https://api.github.com/repos/exo-addons/gamification/statuses/f63668280f90bcb197478e70867a3032c42f856e","head":{"label":"exo-addons:master","ref":"master","sha":"f63668280f90bcb197478e70867a3032c42f856e","user":{"login":"exo-addons","id":2581906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODE5MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/2581906?v=4","gravatar_id":"","url":"https://api.github.com/users/exo-addons","html_url":"https://github.com/exo-addons","followers_url":"https://api.github.com/users/exo-addons/followers","following_url":"https://api.github.com/users/exo-addons/following{/other_user}","gists_url":"https://api.github.com/users/exo-addons/gists{/gist_id}","starred_url":"https://api.github.com/users/exo-addons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exo-addons/subscriptions","organizations_url":"https://api.github.com/users/exo-addons/orgs","repos_url":"https://api.github.com/users/exo-addons/repos","events_url":"https://api.github.com/users/exo-addons/events{/privacy}","received_events_url":"https://api.github.com/users/exo-addons/received_events","type":"Organization","site_admin":false},"repo":{"id":112465632,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI0NjU2MzI=","name":"gamification","full_name":"exo-addons/gamification","owner":{"login":"exo-addons","id":2581906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODE5MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/2581906?v=4","gravatar_id":"","url":"https://api.github.com/users/exo-addons","html_url":"https://github.com/exo-addons","followers_url":"https://api.github.com/users/exo-addons/followers","following_url":"https://api.github.com/users/exo-addons/following{/other_user}","gists_url":"https://api.github.com/users/exo-addons/gists{/gist_id}","starred_url":"https://api.github.com/users/exo-addons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exo-addons/subscriptions","organizations_url":"https://api.github.com/users/exo-addons/orgs","repos_url":"https://api.github.com/users/exo-addons/repos","events_url":"https://api.github.com/users/exo-addons/events{/privacy}","received_events_url":"https://api.github.com/users/exo-addons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exo-addons/gamification","description":"An addon to expose gamification features","fork":false,"url":"https://api.github.com/repos/exo-addons/gamification","forks_url":"https://api.github.com/repos/exo-addons/gamification/forks","keys_url":"https://api.github.com/repos/exo-addons/gamification/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exo-addons/gamification/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exo-addons/gamification/teams","hooks_url":"https://api.github.com/repos/exo-addons/gamification/hooks","issue_events_url":"https://api.github.com/repos/exo-addons/gamification/issues/events{/number}","events_url":"https://api.github.com/repos/exo-addons/gamification/events","assignees_url":"https://api.github.com/repos/exo-addons/gamification/assignees{/user}","branches_url":"https://api.github.com/repos/exo-addons/gamification/branches{/branch}","tags_url":"https://api.github.com/repos/exo-addons/gamification/tags","blobs_url":"https://api.github.com/repos/exo-addons/gamification/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exo-addons/gamification/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exo-addons/gamification/git/refs{/sha}","trees_url":"https://api.github.com/repos/exo-addons/gamification/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exo-addons/gamification/statuses/{sha}","languages_url":"https://api.github.com/repos/exo-addons/gamification/languages","stargazers_url":"https://api.github.com/repos/exo-addons/gamification/stargazers","contributors_url":"https://api.github.com/repos/exo-addons/gamification/contributors","subscribers_url":"https://api.github.com/repos/exo-addons/gamification/subscribers","subscription_url":"https://api.github.com/repos/exo-addons/gamification/subscription","commits_url":"https://api.github.com/repos/exo-addons/gamification/commits{/sha}","git_commits_url":"https://api.github.com/repos/exo-addons/gamification/git/commits{/sha}","comments_url":"https://api.github.com/repos/exo-addons/gamification/comments{/number}","issue_comment_url":"https://api.github.com/repos/exo-addons/gamification/issues/comments{/number}","contents_url":"https://api.github.com/repos/exo-addons/gamification/contents/{+path}","compare_url":"https://api.github.com/repos/exo-addons/gamification/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exo-addons/gamification/merges","archive_url":"https://api.github.com/repos/exo-addons/gamification/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exo-addons/gamification/downloads","issues_url":"https://api.github.com/repos/exo-addons/gamification/issues{/number}","pulls_url":"https://api.github.com/repos/exo-addons/gamification/pulls{/number}","milestones_url":"https://api.github.com/repos/exo-addons/gamification/milestones{/number}","notifications_url":"https://api.github.com/repos/exo-addons/gamification/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exo-addons/gamification/labels{/name}","releases_url":"https://api.github.com/repos/exo-addons/gamification/releases{/id}","deployments_url":"https://api.github.com/repos/exo-addons/gamification/deployments","created_at":"2017-11-29T11:13:21Z","updated_at":"2018-06-28T09:55:02Z","pushed_at":"2018-06-28T09:55:01Z","git_url":"git://github.com/exo-addons/gamification.git","ssh_url":"git@github.com:exo-addons/gamification.git","clone_url":"https://github.com/exo-addons/gamification.git","svn_url":"https://github.com/exo-addons/gamification","homepage":null,"size":603,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"exo-addons:review/engineering","ref":"review/engineering","sha":"bd8c47bd6539ce6e25e616bb5b9e713f622aa432","user":{"login":"exo-addons","id":2581906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODE5MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/2581906?v=4","gravatar_id":"","url":"https://api.github.com/users/exo-addons","html_url":"https://github.com/exo-addons","followers_url":"https://api.github.com/users/exo-addons/followers","following_url":"https://api.github.com/users/exo-addons/following{/other_user}","gists_url":"https://api.github.com/users/exo-addons/gists{/gist_id}","starred_url":"https://api.github.com/users/exo-addons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exo-addons/subscriptions","organizations_url":"https://api.github.com/users/exo-addons/orgs","repos_url":"https://api.github.com/users/exo-addons/repos","events_url":"https://api.github.com/users/exo-addons/events{/privacy}","received_events_url":"https://api.github.com/users/exo-addons/received_events","type":"Organization","site_admin":false},"repo":{"id":112465632,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI0NjU2MzI=","name":"gamification","full_name":"exo-addons/gamification","owner":{"login":"exo-addons","id":2581906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODE5MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/2581906?v=4","gravatar_id":"","url":"https://api.github.com/users/exo-addons","html_url":"https://github.com/exo-addons","followers_url":"https://api.github.com/users/exo-addons/followers","following_url":"https://api.github.com/users/exo-addons/following{/other_user}","gists_url":"https://api.github.com/users/exo-addons/gists{/gist_id}","starred_url":"https://api.github.com/users/exo-addons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exo-addons/subscriptions","organizations_url":"https://api.github.com/users/exo-addons/orgs","repos_url":"https://api.github.com/users/exo-addons/repos","events_url":"https://api.github.com/users/exo-addons/events{/privacy}","received_events_url":"https://api.github.com/users/exo-addons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exo-addons/gamification","description":"An addon to expose gamification features","fork":false,"url":"https://api.github.com/repos/exo-addons/gamification","forks_url":"https://api.github.com/repos/exo-addons/gamification/forks","keys_url":"https://api.github.com/repos/exo-addons/gamification/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exo-addons/gamification/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exo-addons/gamification/teams","hooks_url":"https://api.github.com/repos/exo-addons/gamification/hooks","issue_events_url":"https://api.github.com/repos/exo-addons/gamification/issues/events{/number}","events_url":"https://api.github.com/repos/exo-addons/gamification/events","assignees_url":"https://api.github.com/repos/exo-addons/gamification/assignees{/user}","branches_url":"https://api.github.com/repos/exo-addons/gamification/branches{/branch}","tags_url":"https://api.github.com/repos/exo-addons/gamification/tags","blobs_url":"https://api.github.com/repos/exo-addons/gamification/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exo-addons/gamification/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exo-addons/gamification/git/refs{/sha}","trees_url":"https://api.github.com/repos/exo-addons/gamification/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exo-addons/gamification/statuses/{sha}","languages_url":"https://api.github.com/repos/exo-addons/gamification/languages","stargazers_url":"https://api.github.com/repos/exo-addons/gamification/stargazers","contributors_url":"https://api.github.com/repos/exo-addons/gamification/contributors","subscribers_url":"https://api.github.com/repos/exo-addons/gamification/subscribers","subscription_url":"https://api.github.com/repos/exo-addons/gamification/subscription","commits_url":"https://api.github.com/repos/exo-addons/gamification/commits{/sha}","git_commits_url":"https://api.github.com/repos/exo-addons/gamification/git/commits{/sha}","comments_url":"https://api.github.com/repos/exo-addons/gamification/comments{/number}","issue_comment_url":"https://api.github.com/repos/exo-addons/gamification/issues/comments{/number}","contents_url":"https://api.github.com/repos/exo-addons/gamification/contents/{+path}","compare_url":"https://api.github.com/repos/exo-addons/gamification/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exo-addons/gamification/merges","archive_url":"https://api.github.com/repos/exo-addons/gamification/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exo-addons/gamification/downloads","issues_url":"https://api.github.com/repos/exo-addons/gamification/issues{/number}","pulls_url":"https://api.github.com/repos/exo-addons/gamification/pulls{/number}","milestones_url":"https://api.github.com/repos/exo-addons/gamification/milestones{/number}","notifications_url":"https://api.github.com/repos/exo-addons/gamification/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exo-addons/gamification/labels{/name}","releases_url":"https://api.github.com/repos/exo-addons/gamification/releases{/id}","deployments_url":"https://api.github.com/repos/exo-addons/gamification/deployments","created_at":"2017-11-29T11:13:21Z","updated_at":"2018-06-28T09:55:02Z","pushed_at":"2018-06-28T09:55:01Z","git_url":"git://github.com/exo-addons/gamification.git","ssh_url":"git@github.com:exo-addons/gamification.git","clone_url":"https://github.com/exo-addons/gamification.git","svn_url":"https://github.com/exo-addons/gamification","homepage":null,"size":603,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exo-addons/gamification/pulls/1"},"html":{"href":"https://github.com/exo-addons/gamification/pull/1"},"issue":{"href":"https://api.github.com/repos/exo-addons/gamification/issues/1"},"comments":{"href":"https://api.github.com/repos/exo-addons/gamification/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/exo-addons/gamification/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/exo-addons/gamification/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exo-addons/gamification/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/exo-addons/gamification/statuses/f63668280f90bcb197478e70867a3032c42f856e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kmenzli"}}