{"action":"created","comment":{"url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/comments/49699487","id":49699487,"diff_hunk":"@@ -0,0 +1,104 @@\n+package org.activityinfo.model.type.subform;\n+/*\n+ * #%L\n+ * ActivityInfo Server\n+ * %%\n+ * Copyright (C) 2009 - 2013 UNICEF\n+ * %%\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as\n+ * published by the Free Software Foundation, either version 3 of the \n+ * License, or (at your option) any later version.\n+ * \n+ * This program 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 \n+ * License along with this program.  If not, see\n+ * <http://www.gnu.org/licenses/gpl-3.0.html>.\n+ * #L%\n+ */\n+\n+import com.google.common.collect.Maps;\n+import org.activityinfo.model.form.FormClass;\n+import org.activityinfo.model.legacy.CuidAdapter;\n+import org.activityinfo.model.resource.ResourceId;\n+\n+import java.util.Map;\n+\n+/**\n+ * Represents type of form classes : locationType classes or activity classes.\n+ * Mainly used to allow user define subform kind.\n+ *\n+ * @author yuriyz on 03/12/2015.\n+ */\n+public enum ClassType {","path":"core/model/src/main/java/org/activityinfo/model/type/subform/ClassType.java","position":37,"original_position":37,"commit_id":"b45e5e0bf4614feb31934e3024a8b5dbdfeeae82","original_commit_id":"b45e5e0bf4614feb31934e3024a8b5dbdfeeae82","user":{"login":"akbertram","id":454339,"avatar_url":"https://avatars.githubusercontent.com/u/454339?v=3","gravatar_id":"","url":"https://api.github.com/users/akbertram","html_url":"https://github.com/akbertram","followers_url":"https://api.github.com/users/akbertram/followers","following_url":"https://api.github.com/users/akbertram/following{/other_user}","gists_url":"https://api.github.com/users/akbertram/gists{/gist_id}","starred_url":"https://api.github.com/users/akbertram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akbertram/subscriptions","organizations_url":"https://api.github.com/users/akbertram/orgs","repos_url":"https://api.github.com/users/akbertram/repos","events_url":"https://api.github.com/users/akbertram/events{/privacy}","received_events_url":"https://api.github.com/users/akbertram/received_events","type":"User","site_admin":false},"body":"Can you explain this a bit? Why is it necessary to distinguish between \"types\" of FormClasses?","created_at":"2016-01-14T08:47:39Z","updated_at":"2016-01-14T08:47:39Z","html_url":"https://github.com/bedatadriven/activityinfo/pull/65#discussion_r49699487","pull_request_url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/comments/49699487"},"html":{"href":"https://github.com/bedatadriven/activityinfo/pull/65#discussion_r49699487"},"pull_request":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65","id":55915744,"html_url":"https://github.com/bedatadriven/activityinfo/pull/65","diff_url":"https://github.com/bedatadriven/activityinfo/pull/65.diff","patch_url":"https://github.com/bedatadriven/activityinfo/pull/65.patch","issue_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues/65","number":65,"state":"open","locked":false,"title":"AI-664 subforms","user":{"login":"yuriyz","id":2013070,"avatar_url":"https://avatars.githubusercontent.com/u/2013070?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriyz","html_url":"https://github.com/yuriyz","followers_url":"https://api.github.com/users/yuriyz/followers","following_url":"https://api.github.com/users/yuriyz/following{/other_user}","gists_url":"https://api.github.com/users/yuriyz/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriyz/subscriptions","organizations_url":"https://api.github.com/users/yuriyz/orgs","repos_url":"https://api.github.com/users/yuriyz/repos","events_url":"https://api.github.com/users/yuriyz/events{/privacy}","received_events_url":"https://api.github.com/users/yuriyz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-13T15:56:02Z","updated_at":"2016-01-14T08:47:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bb319600dd248b16889ababb531bdc144a36736","assignee":{"login":"akbertram","id":454339,"avatar_url":"https://avatars.githubusercontent.com/u/454339?v=3","gravatar_id":"","url":"https://api.github.com/users/akbertram","html_url":"https://github.com/akbertram","followers_url":"https://api.github.com/users/akbertram/followers","following_url":"https://api.github.com/users/akbertram/following{/other_user}","gists_url":"https://api.github.com/users/akbertram/gists{/gist_id}","starred_url":"https://api.github.com/users/akbertram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akbertram/subscriptions","organizations_url":"https://api.github.com/users/akbertram/orgs","repos_url":"https://api.github.com/users/akbertram/repos","events_url":"https://api.github.com/users/akbertram/events{/privacy}","received_events_url":"https://api.github.com/users/akbertram/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65/commits","review_comments_url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65/comments","review_comment_url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues/65/comments","statuses_url":"https://api.github.com/repos/bedatadriven/activityinfo/statuses/b45e5e0bf4614feb31934e3024a8b5dbdfeeae82","head":{"label":"bedatadriven:ai-664","ref":"ai-664","sha":"b45e5e0bf4614feb31934e3024a8b5dbdfeeae82","user":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"repo":{"id":5178571,"name":"activityinfo","full_name":"bedatadriven/activityinfo","owner":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bedatadriven/activityinfo","description":"Platform for field-level monitoring and analysis of humanitarian actions","fork":false,"url":"https://api.github.com/repos/bedatadriven/activityinfo","forks_url":"https://api.github.com/repos/bedatadriven/activityinfo/forks","keys_url":"https://api.github.com/repos/bedatadriven/activityinfo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bedatadriven/activityinfo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bedatadriven/activityinfo/teams","hooks_url":"https://api.github.com/repos/bedatadriven/activityinfo/hooks","issue_events_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues/events{/number}","events_url":"https://api.github.com/repos/bedatadriven/activityinfo/events","assignees_url":"https://api.github.com/repos/bedatadriven/activityinfo/assignees{/user}","branches_url":"https://api.github.com/repos/bedatadriven/activityinfo/branches{/branch}","tags_url":"https://api.github.com/repos/bedatadriven/activityinfo/tags","blobs_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/refs{/sha}","trees_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bedatadriven/activityinfo/statuses/{sha}","languages_url":"https://api.github.com/repos/bedatadriven/activityinfo/languages","stargazers_url":"https://api.github.com/repos/bedatadriven/activityinfo/stargazers","contributors_url":"https://api.github.com/repos/bedatadriven/activityinfo/contributors","subscribers_url":"https://api.github.com/repos/bedatadriven/activityinfo/subscribers","subscription_url":"https://api.github.com/repos/bedatadriven/activityinfo/subscription","commits_url":"https://api.github.com/repos/bedatadriven/activityinfo/commits{/sha}","git_commits_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/commits{/sha}","comments_url":"https://api.github.com/repos/bedatadriven/activityinfo/comments{/number}","issue_comment_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues/comments{/number}","contents_url":"https://api.github.com/repos/bedatadriven/activityinfo/contents/{+path}","compare_url":"https://api.github.com/repos/bedatadriven/activityinfo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bedatadriven/activityinfo/merges","archive_url":"https://api.github.com/repos/bedatadriven/activityinfo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bedatadriven/activityinfo/downloads","issues_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues{/number}","pulls_url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls{/number}","milestones_url":"https://api.github.com/repos/bedatadriven/activityinfo/milestones{/number}","notifications_url":"https://api.github.com/repos/bedatadriven/activityinfo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bedatadriven/activityinfo/labels{/name}","releases_url":"https://api.github.com/repos/bedatadriven/activityinfo/releases{/id}","created_at":"2012-07-25T12:04:35Z","updated_at":"2015-11-12T08:08:49Z","pushed_at":"2016-01-14T08:25:40Z","git_url":"git://github.com/bedatadriven/activityinfo.git","ssh_url":"git@github.com:bedatadriven/activityinfo.git","clone_url":"https://github.com/bedatadriven/activityinfo.git","svn_url":"https://github.com/bedatadriven/activityinfo","homepage":"http://about.activityinfo.org","size":86902,"stargazers_count":19,"watchers_count":19,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":19,"default_branch":"production"}},"base":{"label":"bedatadriven:production","ref":"production","sha":"513a033ef46c0de166fc0b9f1218aadee6c1e050","user":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"repo":{"id":5178571,"name":"activityinfo","full_name":"bedatadriven/activityinfo","owner":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bedatadriven/activityinfo","description":"Platform for field-level monitoring and analysis of humanitarian actions","fork":false,"url":"https://api.github.com/repos/bedatadriven/activityinfo","forks_url":"https://api.github.com/repos/bedatadriven/activityinfo/forks","keys_url":"https://api.github.com/repos/bedatadriven/activityinfo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bedatadriven/activityinfo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bedatadriven/activityinfo/teams","hooks_url":"https://api.github.com/repos/bedatadriven/activityinfo/hooks","issue_events_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues/events{/number}","events_url":"https://api.github.com/repos/bedatadriven/activityinfo/events","assignees_url":"https://api.github.com/repos/bedatadriven/activityinfo/assignees{/user}","branches_url":"https://api.github.com/repos/bedatadriven/activityinfo/branches{/branch}","tags_url":"https://api.github.com/repos/bedatadriven/activityinfo/tags","blobs_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/refs{/sha}","trees_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bedatadriven/activityinfo/statuses/{sha}","languages_url":"https://api.github.com/repos/bedatadriven/activityinfo/languages","stargazers_url":"https://api.github.com/repos/bedatadriven/activityinfo/stargazers","contributors_url":"https://api.github.com/repos/bedatadriven/activityinfo/contributors","subscribers_url":"https://api.github.com/repos/bedatadriven/activityinfo/subscribers","subscription_url":"https://api.github.com/repos/bedatadriven/activityinfo/subscription","commits_url":"https://api.github.com/repos/bedatadriven/activityinfo/commits{/sha}","git_commits_url":"https://api.github.com/repos/bedatadriven/activityinfo/git/commits{/sha}","comments_url":"https://api.github.com/repos/bedatadriven/activityinfo/comments{/number}","issue_comment_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues/comments{/number}","contents_url":"https://api.github.com/repos/bedatadriven/activityinfo/contents/{+path}","compare_url":"https://api.github.com/repos/bedatadriven/activityinfo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bedatadriven/activityinfo/merges","archive_url":"https://api.github.com/repos/bedatadriven/activityinfo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bedatadriven/activityinfo/downloads","issues_url":"https://api.github.com/repos/bedatadriven/activityinfo/issues{/number}","pulls_url":"https://api.github.com/repos/bedatadriven/activityinfo/pulls{/number}","milestones_url":"https://api.github.com/repos/bedatadriven/activityinfo/milestones{/number}","notifications_url":"https://api.github.com/repos/bedatadriven/activityinfo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bedatadriven/activityinfo/labels{/name}","releases_url":"https://api.github.com/repos/bedatadriven/activityinfo/releases{/id}","created_at":"2012-07-25T12:04:35Z","updated_at":"2015-11-12T08:08:49Z","pushed_at":"2016-01-14T08:25:40Z","git_url":"git://github.com/bedatadriven/activityinfo.git","ssh_url":"git@github.com:bedatadriven/activityinfo.git","clone_url":"https://github.com/bedatadriven/activityinfo.git","svn_url":"https://github.com/bedatadriven/activityinfo","homepage":"http://about.activityinfo.org","size":86902,"stargazers_count":19,"watchers_count":19,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":19,"default_branch":"production"}},"_links":{"self":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65"},"html":{"href":"https://github.com/bedatadriven/activityinfo/pull/65"},"issue":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/issues/65"},"comments":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/bedatadriven/activityinfo/statuses/b45e5e0bf4614feb31934e3024a8b5dbdfeeae82"}}}}