{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/kapua/pulls/comments/102428428","pull_request_review_id":23177670,"id":102428428,"diff_hunk":"@@ -0,0 +1,91 @@\n+/*******************************************************************************\n+ * Copyright (c) 2011, 2017 Eurotech and/or its affiliates and others\n+ *\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ *\n+ * Contributors:\n+ *     Eurotech - initial API and implementation\n+ *\n+ *******************************************************************************/\n+package org.eclipse.kapua.app.console.client.group;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import org.eclipse.kapua.app.console.client.ui.grid.EntityGrid;\n+import org.eclipse.kapua.app.console.client.ui.view.EntityView;\n+import org.eclipse.kapua.app.console.shared.model.GwtGroup;\n+import org.eclipse.kapua.app.console.shared.model.GwtSession;\n+import org.eclipse.kapua.app.console.shared.model.query.GwtQuery;\n+import org.eclipse.kapua.app.console.shared.service.GwtGroupService;\n+import org.eclipse.kapua.app.console.shared.service.GwtGroupServiceAsync;\n+import com.extjs.gxt.ui.client.data.PagingLoadConfig;\n+import com.extjs.gxt.ui.client.data.PagingLoadResult;\n+import com.extjs.gxt.ui.client.data.RpcProxy;\n+import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;\n+import com.google.gwt.core.client.GWT;\n+import com.google.gwt.user.client.rpc.AsyncCallback;\n+\n+public class GroupGrid extends EntityGrid<GwtGroup> {\n+    private static final GwtGroupServiceAsync gwtGroupService = GWT.create(GwtGroupService.class);\n+    private GwtGroupQuery query;\n+\n+    protected GroupGrid(EntityView<GwtGroup> entityView, GwtSession currentSession) {\n+        super(entityView, currentSession);\n+        query = new GwtGroupQuery();\n+        query.setScopeId(currentSession.getSelectedAccount().getId());\n+    }\n+\n+    @Override\n+    protected RpcProxy<PagingLoadResult<GwtGroup>> getDataProxy() {\n+        return new RpcProxy<PagingLoadResult<GwtGroup>>() {\n+\n+            @Override\n+            protected void load(Object loadConfig,\n+                    AsyncCallback<PagingLoadResult<GwtGroup>> callback) {\n+                gwtGroupService.query((PagingLoadConfig) loadConfig, query, callback);\n+\n+            }\n+        };\n+    }\n+\n+    @Override\n+    protected List<ColumnConfig> getColumns() {\n+        List<ColumnConfig> columnConfigs = new ArrayList<ColumnConfig>();\n+\n+        ColumnConfig columnConfig = new ColumnConfig(\"groupName\", \"Group Name\", 200);\n+        columnConfigs.add(columnConfig);\n+\n+        columnConfig = new ColumnConfig(\"createdOn\", \"Created On\", 200);","path":"console/src/main/java/org/eclipse/kapua/app/console/client/group/GroupGrid.java","position":61,"original_position":61,"commit_id":"2be44cb3a04eb79233c4a7d7397105a3fc198201","original_commit_id":"a5d2656368b18c75e61b5b33c624c6c976df36dc","user":{"login":"lorthirk","id":8140139,"avatar_url":"https://avatars.githubusercontent.com/u/8140139?v=3","gravatar_id":"","url":"https://api.github.com/users/lorthirk","html_url":"https://github.com/lorthirk","followers_url":"https://api.github.com/users/lorthirk/followers","following_url":"https://api.github.com/users/lorthirk/following{/other_user}","gists_url":"https://api.github.com/users/lorthirk/gists{/gist_id}","starred_url":"https://api.github.com/users/lorthirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorthirk/subscriptions","organizations_url":"https://api.github.com/users/lorthirk/orgs","repos_url":"https://api.github.com/users/lorthirk/repos","events_url":"https://api.github.com/users/lorthirk/events{/privacy}","received_events_url":"https://api.github.com/users/lorthirk/received_events","type":"User","site_admin":false},"body":"This string should be externalized","created_at":"2017-02-22T10:28:04Z","updated_at":"2017-02-22T10:55:19Z","html_url":"https://github.com/eclipse/kapua/pull/312#discussion_r102428428","pull_request_url":"https://api.github.com/repos/eclipse/kapua/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/eclipse/kapua/pulls/comments/102428428"},"html":{"href":"https://github.com/eclipse/kapua/pull/312#discussion_r102428428"},"pull_request":{"href":"https://api.github.com/repos/eclipse/kapua/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/kapua/pulls/312","id":107359661,"html_url":"https://github.com/eclipse/kapua/pull/312","diff_url":"https://github.com/eclipse/kapua/pull/312.diff","patch_url":"https://github.com/eclipse/kapua/pull/312.patch","issue_url":"https://api.github.com/repos/eclipse/kapua/issues/312","number":312,"state":"open","locked":false,"title":"Impl groups usr stories","user":{"login":"bojanutkovic","id":24604468,"avatar_url":"https://avatars.githubusercontent.com/u/24604468?v=3","gravatar_id":"","url":"https://api.github.com/users/bojanutkovic","html_url":"https://github.com/bojanutkovic","followers_url":"https://api.github.com/users/bojanutkovic/followers","following_url":"https://api.github.com/users/bojanutkovic/following{/other_user}","gists_url":"https://api.github.com/users/bojanutkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/bojanutkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojanutkovic/subscriptions","organizations_url":"https://api.github.com/users/bojanutkovic/orgs","repos_url":"https://api.github.com/users/bojanutkovic/repos","events_url":"https://api.github.com/users/bojanutkovic/events{/privacy}","received_events_url":"https://api.github.com/users/bojanutkovic/received_events","type":"User","site_admin":false},"body":"Groups user stories implementation","created_at":"2017-02-22T08:49:05Z","updated_at":"2017-02-22T10:55:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"402d56f36d0960768995183ac25ec1ed33397e74","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/kapua/pulls/312/commits","review_comments_url":"https://api.github.com/repos/eclipse/kapua/pulls/312/comments","review_comment_url":"https://api.github.com/repos/eclipse/kapua/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/kapua/issues/312/comments","statuses_url":"https://api.github.com/repos/eclipse/kapua/statuses/2be44cb3a04eb79233c4a7d7397105a3fc198201","head":{"label":"bojanutkovic:impl-groupsUsrStories","ref":"impl-groupsUsrStories","sha":"2be44cb3a04eb79233c4a7d7397105a3fc198201","user":{"login":"bojanutkovic","id":24604468,"avatar_url":"https://avatars.githubusercontent.com/u/24604468?v=3","gravatar_id":"","url":"https://api.github.com/users/bojanutkovic","html_url":"https://github.com/bojanutkovic","followers_url":"https://api.github.com/users/bojanutkovic/followers","following_url":"https://api.github.com/users/bojanutkovic/following{/other_user}","gists_url":"https://api.github.com/users/bojanutkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/bojanutkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojanutkovic/subscriptions","organizations_url":"https://api.github.com/users/bojanutkovic/orgs","repos_url":"https://api.github.com/users/bojanutkovic/repos","events_url":"https://api.github.com/users/bojanutkovic/events{/privacy}","received_events_url":"https://api.github.com/users/bojanutkovic/received_events","type":"User","site_admin":false},"repo":{"id":76659222,"name":"kapua","full_name":"bojanutkovic/kapua","owner":{"login":"bojanutkovic","id":24604468,"avatar_url":"https://avatars.githubusercontent.com/u/24604468?v=3","gravatar_id":"","url":"https://api.github.com/users/bojanutkovic","html_url":"https://github.com/bojanutkovic","followers_url":"https://api.github.com/users/bojanutkovic/followers","following_url":"https://api.github.com/users/bojanutkovic/following{/other_user}","gists_url":"https://api.github.com/users/bojanutkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/bojanutkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojanutkovic/subscriptions","organizations_url":"https://api.github.com/users/bojanutkovic/orgs","repos_url":"https://api.github.com/users/bojanutkovic/repos","events_url":"https://api.github.com/users/bojanutkovic/events{/privacy}","received_events_url":"https://api.github.com/users/bojanutkovic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bojanutkovic/kapua","description":null,"fork":true,"url":"https://api.github.com/repos/bojanutkovic/kapua","forks_url":"https://api.github.com/repos/bojanutkovic/kapua/forks","keys_url":"https://api.github.com/repos/bojanutkovic/kapua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bojanutkovic/kapua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bojanutkovic/kapua/teams","hooks_url":"https://api.github.com/repos/bojanutkovic/kapua/hooks","issue_events_url":"https://api.github.com/repos/bojanutkovic/kapua/issues/events{/number}","events_url":"https://api.github.com/repos/bojanutkovic/kapua/events","assignees_url":"https://api.github.com/repos/bojanutkovic/kapua/assignees{/user}","branches_url":"https://api.github.com/repos/bojanutkovic/kapua/branches{/branch}","tags_url":"https://api.github.com/repos/bojanutkovic/kapua/tags","blobs_url":"https://api.github.com/repos/bojanutkovic/kapua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bojanutkovic/kapua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bojanutkovic/kapua/git/refs{/sha}","trees_url":"https://api.github.com/repos/bojanutkovic/kapua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bojanutkovic/kapua/statuses/{sha}","languages_url":"https://api.github.com/repos/bojanutkovic/kapua/languages","stargazers_url":"https://api.github.com/repos/bojanutkovic/kapua/stargazers","contributors_url":"https://api.github.com/repos/bojanutkovic/kapua/contributors","subscribers_url":"https://api.github.com/repos/bojanutkovic/kapua/subscribers","subscription_url":"https://api.github.com/repos/bojanutkovic/kapua/subscription","commits_url":"https://api.github.com/repos/bojanutkovic/kapua/commits{/sha}","git_commits_url":"https://api.github.com/repos/bojanutkovic/kapua/git/commits{/sha}","comments_url":"https://api.github.com/repos/bojanutkovic/kapua/comments{/number}","issue_comment_url":"https://api.github.com/repos/bojanutkovic/kapua/issues/comments{/number}","contents_url":"https://api.github.com/repos/bojanutkovic/kapua/contents/{+path}","compare_url":"https://api.github.com/repos/bojanutkovic/kapua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bojanutkovic/kapua/merges","archive_url":"https://api.github.com/repos/bojanutkovic/kapua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bojanutkovic/kapua/downloads","issues_url":"https://api.github.com/repos/bojanutkovic/kapua/issues{/number}","pulls_url":"https://api.github.com/repos/bojanutkovic/kapua/pulls{/number}","milestones_url":"https://api.github.com/repos/bojanutkovic/kapua/milestones{/number}","notifications_url":"https://api.github.com/repos/bojanutkovic/kapua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bojanutkovic/kapua/labels{/name}","releases_url":"https://api.github.com/repos/bojanutkovic/kapua/releases{/id}","deployments_url":"https://api.github.com/repos/bojanutkovic/kapua/deployments","created_at":"2016-12-16T14:19:14Z","updated_at":"2016-12-16T14:19:18Z","pushed_at":"2017-02-22T10:34:47Z","git_url":"git://github.com/bojanutkovic/kapua.git","ssh_url":"git@github.com:bojanutkovic/kapua.git","clone_url":"https://github.com/bojanutkovic/kapua.git","svn_url":"https://github.com/bojanutkovic/kapua","homepage":null,"size":5797,"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":"develop"}},"base":{"label":"eclipse:develop","ref":"develop","sha":"5f808e338eb9480f1e1adc0c64e3162e710ef247","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":70921758,"name":"kapua","full_name":"eclipse/kapua","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/kapua","description":null,"fork":false,"url":"https://api.github.com/repos/eclipse/kapua","forks_url":"https://api.github.com/repos/eclipse/kapua/forks","keys_url":"https://api.github.com/repos/eclipse/kapua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/kapua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/kapua/teams","hooks_url":"https://api.github.com/repos/eclipse/kapua/hooks","issue_events_url":"https://api.github.com/repos/eclipse/kapua/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/kapua/events","assignees_url":"https://api.github.com/repos/eclipse/kapua/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/kapua/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/kapua/tags","blobs_url":"https://api.github.com/repos/eclipse/kapua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/kapua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/kapua/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/kapua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/kapua/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/kapua/languages","stargazers_url":"https://api.github.com/repos/eclipse/kapua/stargazers","contributors_url":"https://api.github.com/repos/eclipse/kapua/contributors","subscribers_url":"https://api.github.com/repos/eclipse/kapua/subscribers","subscription_url":"https://api.github.com/repos/eclipse/kapua/subscription","commits_url":"https://api.github.com/repos/eclipse/kapua/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/kapua/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/kapua/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/kapua/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/kapua/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/kapua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/kapua/merges","archive_url":"https://api.github.com/repos/eclipse/kapua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/kapua/downloads","issues_url":"https://api.github.com/repos/eclipse/kapua/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/kapua/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/kapua/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/kapua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/kapua/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/kapua/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/kapua/deployments","created_at":"2016-10-14T15:14:46Z","updated_at":"2017-02-21T02:03:01Z","pushed_at":"2017-02-22T10:43:53Z","git_url":"git://github.com/eclipse/kapua.git","ssh_url":"git@github.com:eclipse/kapua.git","clone_url":"https://github.com/eclipse/kapua.git","svn_url":"https://github.com/eclipse/kapua","homepage":null,"size":6214,"stargazers_count":31,"watchers_count":31,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":94,"forks":25,"open_issues":94,"watchers":31,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/kapua/pulls/312"},"html":{"href":"https://github.com/eclipse/kapua/pull/312"},"issue":{"href":"https://api.github.com/repos/eclipse/kapua/issues/312"},"comments":{"href":"https://api.github.com/repos/eclipse/kapua/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/kapua/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/kapua/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/kapua/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/kapua/statuses/2be44cb3a04eb79233c4a7d7397105a3fc198201"}}}}
{"actor":{"display_login":"lorthirk"}}