{"action":"created","comment":{"url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/24418783","id":24418783,"diff_hunk":"@@ -0,0 +1,98 @@\n+/*\n+ * Copyright (c) 2011-2013 Lp digital system\n+ *\n+ * This file is part of BackBuilder5.\n+ *\n+ * BackBuilder5 is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * BackBuilder5 is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with BackBuilder5. If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+define(['jsclass'], function () {\n+    'use strict';\n+\n+    return new JS.Class({\n+        ude: 'undefined',\n+\n+        initialize: function () {\n+            this.data = {\n+                groups: []\n+            };\n+\n+            this.map = [\n+                'id',\n+                'email',\n+                'login',\n+                'picture',\n+                'firstname',\n+                'lastname',\n+                'status',\n+                'password',\n+                'activated',\n+                'groups',\n+                'api_key',\n+                'created',\n+                'modified'\n+            ];\n+        },\n+\n+        populate: function (values) {\n+            var key;\n+\n+            for (key in values) {\n+                if (values.hasOwnProperty(key) && -1 !== this.map.indexOf(key)) {\n+                    this.data[key] = values[key];\n+                }\n+            }\n+        },\n+\n+        getObject: function () {\n+            return this.data;\n+        },\n+\n+        id: function () {\n+            return this.data.id;\n+        },\n+\n+        login: function () {\n+            return this.data.login === undefined ? this.ude : this.data.login;\n+        },\n+\n+        email: function () {\n+            return this.data.email === undefined ? this.ude : this.data.email;\n+        },\n+\n+        activated: function () {\n+            return this.data.activated === undefined ? 'desactivated' : 'activated';","path":"src/tb/apps/user/entity/user.js","position":75,"original_position":75,"commit_id":"8d05d49597c1b138dd82678328fd0e520a2b4f0a","original_commit_id":"8d05d49597c1b138dd82678328fd0e520a2b4f0a","user":{"login":"fkroockmann","id":9247945,"avatar_url":"https://avatars.githubusercontent.com/u/9247945?v=3","gravatar_id":"","url":"https://api.github.com/users/fkroockmann","html_url":"https://github.com/fkroockmann","followers_url":"https://api.github.com/users/fkroockmann/followers","following_url":"https://api.github.com/users/fkroockmann/following{/other_user}","gists_url":"https://api.github.com/users/fkroockmann/gists{/gist_id}","starred_url":"https://api.github.com/users/fkroockmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkroockmann/subscriptions","organizations_url":"https://api.github.com/users/fkroockmann/orgs","repos_url":"https://api.github.com/users/fkroockmann/repos","events_url":"https://api.github.com/users/fkroockmann/events{/privacy}","received_events_url":"https://api.github.com/users/fkroockmann/received_events","type":"User","site_admin":false},"body":"enable/disable ?","created_at":"2015-02-10T15:17:17Z","updated_at":"2015-02-10T15:17:17Z","html_url":"https://github.com/backbee/BbCoreJs/pull/159#discussion_r24418783","pull_request_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/24418783"},"html":{"href":"https://github.com/backbee/BbCoreJs/pull/159#discussion_r24418783"},"pull_request":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159","id":29013149,"html_url":"https://github.com/backbee/BbCoreJs/pull/159","diff_url":"https://github.com/backbee/BbCoreJs/pull/159.diff","patch_url":"https://github.com/backbee/BbCoreJs/pull/159.patch","issue_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/159","number":159,"state":"open","locked":false,"title":"Creating user application #17","user":{"login":"ndufreche","id":426139,"avatar_url":"https://avatars.githubusercontent.com/u/426139?v=3","gravatar_id":"","url":"https://api.github.com/users/ndufreche","html_url":"https://github.com/ndufreche","followers_url":"https://api.github.com/users/ndufreche/followers","following_url":"https://api.github.com/users/ndufreche/following{/other_user}","gists_url":"https://api.github.com/users/ndufreche/gists{/gist_id}","starred_url":"https://api.github.com/users/ndufreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndufreche/subscriptions","organizations_url":"https://api.github.com/users/ndufreche/orgs","repos_url":"https://api.github.com/users/ndufreche/repos","events_url":"https://api.github.com/users/ndufreche/events{/privacy}","received_events_url":"https://api.github.com/users/ndufreche/received_events","type":"User","site_admin":false},"body":"This a first part of user application.\r\n\r\nActions possible, in admin role :\r\n* create\r\n* update\r\n* delete\r\n\r\nWork only with an upgrade of backbee/BackBee#225","created_at":"2015-02-10T14:57:22Z","updated_at":"2015-02-10T15:17:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ff179820f8eeb550e2f9eb7a554c7dec72dd7fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159/commits","review_comments_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159/comments","review_comment_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/159/comments","statuses_url":"https://api.github.com/repos/backbee/BbCoreJs/statuses/8d05d49597c1b138dd82678328fd0e520a2b4f0a","head":{"label":"backbee:17","ref":"17","sha":"8d05d49597c1b138dd82678328fd0e520a2b4f0a","user":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"repo":{"id":25197244,"name":"BbCoreJs","full_name":"backbee/BbCoreJs","owner":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/backbee/BbCoreJs","description":"BackBee front-admin javascript","fork":false,"url":"https://api.github.com/repos/backbee/BbCoreJs","forks_url":"https://api.github.com/repos/backbee/BbCoreJs/forks","keys_url":"https://api.github.com/repos/backbee/BbCoreJs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backbee/BbCoreJs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backbee/BbCoreJs/teams","hooks_url":"https://api.github.com/repos/backbee/BbCoreJs/hooks","issue_events_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/events{/number}","events_url":"https://api.github.com/repos/backbee/BbCoreJs/events","assignees_url":"https://api.github.com/repos/backbee/BbCoreJs/assignees{/user}","branches_url":"https://api.github.com/repos/backbee/BbCoreJs/branches{/branch}","tags_url":"https://api.github.com/repos/backbee/BbCoreJs/tags","blobs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backbee/BbCoreJs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/refs{/sha}","trees_url":"https://api.github.com/repos/backbee/BbCoreJs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backbee/BbCoreJs/statuses/{sha}","languages_url":"https://api.github.com/repos/backbee/BbCoreJs/languages","stargazers_url":"https://api.github.com/repos/backbee/BbCoreJs/stargazers","contributors_url":"https://api.github.com/repos/backbee/BbCoreJs/contributors","subscribers_url":"https://api.github.com/repos/backbee/BbCoreJs/subscribers","subscription_url":"https://api.github.com/repos/backbee/BbCoreJs/subscription","commits_url":"https://api.github.com/repos/backbee/BbCoreJs/commits{/sha}","git_commits_url":"https://api.github.com/repos/backbee/BbCoreJs/git/commits{/sha}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/comments{/number}","issue_comment_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/comments/{number}","contents_url":"https://api.github.com/repos/backbee/BbCoreJs/contents/{+path}","compare_url":"https://api.github.com/repos/backbee/BbCoreJs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backbee/BbCoreJs/merges","archive_url":"https://api.github.com/repos/backbee/BbCoreJs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backbee/BbCoreJs/downloads","issues_url":"https://api.github.com/repos/backbee/BbCoreJs/issues{/number}","pulls_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls{/number}","milestones_url":"https://api.github.com/repos/backbee/BbCoreJs/milestones{/number}","notifications_url":"https://api.github.com/repos/backbee/BbCoreJs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backbee/BbCoreJs/labels{/name}","releases_url":"https://api.github.com/repos/backbee/BbCoreJs/releases{/id}","created_at":"2014-10-14T08:32:15Z","updated_at":"2015-02-09T11:04:30Z","pushed_at":"2015-02-10T14:54:25Z","git_url":"git://github.com/backbee/BbCoreJs.git","ssh_url":"git@github.com:backbee/BbCoreJs.git","clone_url":"https://github.com/backbee/BbCoreJs.git","svn_url":"https://github.com/backbee/BbCoreJs","homepage":null,"size":2934,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":41,"forks":2,"open_issues":41,"watchers":5,"default_branch":"master"}},"base":{"label":"backbee:master","ref":"master","sha":"487bc7d421a003f96261e3b6fdb194ea2d30c93e","user":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"repo":{"id":25197244,"name":"BbCoreJs","full_name":"backbee/BbCoreJs","owner":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/backbee/BbCoreJs","description":"BackBee front-admin javascript","fork":false,"url":"https://api.github.com/repos/backbee/BbCoreJs","forks_url":"https://api.github.com/repos/backbee/BbCoreJs/forks","keys_url":"https://api.github.com/repos/backbee/BbCoreJs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backbee/BbCoreJs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backbee/BbCoreJs/teams","hooks_url":"https://api.github.com/repos/backbee/BbCoreJs/hooks","issue_events_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/events{/number}","events_url":"https://api.github.com/repos/backbee/BbCoreJs/events","assignees_url":"https://api.github.com/repos/backbee/BbCoreJs/assignees{/user}","branches_url":"https://api.github.com/repos/backbee/BbCoreJs/branches{/branch}","tags_url":"https://api.github.com/repos/backbee/BbCoreJs/tags","blobs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backbee/BbCoreJs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/refs{/sha}","trees_url":"https://api.github.com/repos/backbee/BbCoreJs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backbee/BbCoreJs/statuses/{sha}","languages_url":"https://api.github.com/repos/backbee/BbCoreJs/languages","stargazers_url":"https://api.github.com/repos/backbee/BbCoreJs/stargazers","contributors_url":"https://api.github.com/repos/backbee/BbCoreJs/contributors","subscribers_url":"https://api.github.com/repos/backbee/BbCoreJs/subscribers","subscription_url":"https://api.github.com/repos/backbee/BbCoreJs/subscription","commits_url":"https://api.github.com/repos/backbee/BbCoreJs/commits{/sha}","git_commits_url":"https://api.github.com/repos/backbee/BbCoreJs/git/commits{/sha}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/comments{/number}","issue_comment_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/comments/{number}","contents_url":"https://api.github.com/repos/backbee/BbCoreJs/contents/{+path}","compare_url":"https://api.github.com/repos/backbee/BbCoreJs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backbee/BbCoreJs/merges","archive_url":"https://api.github.com/repos/backbee/BbCoreJs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backbee/BbCoreJs/downloads","issues_url":"https://api.github.com/repos/backbee/BbCoreJs/issues{/number}","pulls_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls{/number}","milestones_url":"https://api.github.com/repos/backbee/BbCoreJs/milestones{/number}","notifications_url":"https://api.github.com/repos/backbee/BbCoreJs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backbee/BbCoreJs/labels{/name}","releases_url":"https://api.github.com/repos/backbee/BbCoreJs/releases{/id}","created_at":"2014-10-14T08:32:15Z","updated_at":"2015-02-09T11:04:30Z","pushed_at":"2015-02-10T14:54:25Z","git_url":"git://github.com/backbee/BbCoreJs.git","ssh_url":"git@github.com:backbee/BbCoreJs.git","clone_url":"https://github.com/backbee/BbCoreJs.git","svn_url":"https://github.com/backbee/BbCoreJs","homepage":null,"size":2934,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":41,"forks":2,"open_issues":41,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159"},"html":{"href":"https://github.com/backbee/BbCoreJs/pull/159"},"issue":{"href":"https://api.github.com/repos/backbee/BbCoreJs/issues/159"},"comments":{"href":"https://api.github.com/repos/backbee/BbCoreJs/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/backbee/BbCoreJs/statuses/8d05d49597c1b138dd82678328fd0e520a2b4f0a"}}}}