{"action":"created","comment":{"url":"https://api.github.com/repos/clockard/ddf-registry/pulls/comments/50706066","id":50706066,"diff_hunk":"@@ -0,0 +1,113 @@\n+/**\n+ * Copyright (c) Codice Foundation\n+ * <p>\n+ * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser\n+ * General Public License as published by the Free Software Foundation, either version 3 of the\n+ * License, or any later version.\n+ * <p>\n+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\n+ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n+ * Lesser General Public License for more details. A copy of the GNU Lesser General Public License\n+ * is distributed along with this program and can be found at\n+ * <http://www.gnu.org/licenses/lgpl.html>.\n+ */\n+package org.codice.ddf.registry;\n+\n+import java.util.Set;\n+\n+import ddf.catalog.data.AttributeDescriptor;\n+import ddf.catalog.data.AttributeType;\n+import ddf.catalog.data.Metacard;\n+import ddf.catalog.data.impl.AttributeDescriptorImpl;\n+import ddf.catalog.data.impl.BasicTypes;\n+import ddf.catalog.data.impl.MetacardTypeImpl;\n+\n+/**\n+ * Base MetacardType for all registry MetacardTypes.\n+ */\n+public class RegistryObjectMetacardType extends MetacardTypeImpl {\n+\n+    public static final String REGISTRY_METACARD_TYPE_NAME = \"registry\";\n+\n+    public static final String METACARD_TYPE = \"metacard-type\";\n+\n+    public static final String ORGANIZATION_NAME = \"organization-name\";\n+\n+    public static final String ORGANIZATION_ADDRESS = \"organization-address\";\n+\n+    public static final String ORGANIZATION_PHONE_NUMBER = \"organization-phone-number\";\n+\n+    public static final String ORGANIZATION_EMAIL = \"organization-email\";\n+\n+    public static final String ENTRY_TYPE = \"entry-type\";\n+\n+    public RegistryObjectMetacardType() {\n+        this(REGISTRY_METACARD_TYPE_NAME, null);\n+    }\n+\n+    public RegistryObjectMetacardType(String name, Set<AttributeDescriptor> descriptors) {\n+        super(name, descriptors);\n+        addRegistryAttributes();\n+    }\n+\n+    private void addRegistryAttributes() {\n+        addQueryableString(Metacard.ID, false);\n+        addQueryableString(Metacard.CONTENT_TYPE, false);\n+        addXml(Metacard.METADATA, true);\n+        addQueryableDate(Metacard.CREATED);\n+        addQueryableDate(Metacard.MODIFIED);\n+        addQueryableString(Metacard.TITLE, false); //name\n+        addQueryableString(Metacard.DESCRIPTION, false);\n+        addQueryableString(Metacard.SECURITY, true); //securityLevel","path":"catalog/registry/catalog-registry-cswinputtransformer/src/main/java/org/codice/ddf/registry/RegistryObjectMetacardType.java","position":61,"original_position":61,"commit_id":"fdb68c8bb2bec122e7d2b8bf871e6b1761794931","original_commit_id":"fdb68c8bb2bec122e7d2b8bf871e6b1761794931","user":{"login":"clockard","id":5248090,"avatar_url":"https://avatars.githubusercontent.com/u/5248090?v=3","gravatar_id":"","url":"https://api.github.com/users/clockard","html_url":"https://github.com/clockard","followers_url":"https://api.github.com/users/clockard/followers","following_url":"https://api.github.com/users/clockard/following{/other_user}","gists_url":"https://api.github.com/users/clockard/gists{/gist_id}","starred_url":"https://api.github.com/users/clockard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clockard/subscriptions","organizations_url":"https://api.github.com/users/clockard/orgs","repos_url":"https://api.github.com/users/clockard/repos","events_url":"https://api.github.com/users/clockard/events{/privacy}","received_events_url":"https://api.github.com/users/clockard/received_events","type":"User","site_admin":false},"body":"I think we should keep it as our own field. we could call it something else though if you think it's better. Maybe securityHighWaterMark or something like that to indicate it is the maximum classification for the system. FYI i envision this slot to hold multiple values in the form of attribute=val1,val2,val3 ect. ","created_at":"2016-01-25T15:19:27Z","updated_at":"2016-01-25T15:19:27Z","html_url":"https://github.com/clockard/ddf-registry/pull/8#discussion_r50706066","pull_request_url":"https://api.github.com/repos/clockard/ddf-registry/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/clockard/ddf-registry/pulls/comments/50706066"},"html":{"href":"https://github.com/clockard/ddf-registry/pull/8#discussion_r50706066"},"pull_request":{"href":"https://api.github.com/repos/clockard/ddf-registry/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/clockard/ddf-registry/pulls/8","id":56839079,"html_url":"https://github.com/clockard/ddf-registry/pull/8","diff_url":"https://github.com/clockard/ddf-registry/pull/8.diff","patch_url":"https://github.com/clockard/ddf-registry/pull/8.patch","issue_url":"https://api.github.com/repos/clockard/ddf-registry/issues/8","number":8,"state":"open","locked":false,"title":"DDF-1743: Added registry input transformer.","user":{"login":"djblue","id":1986211,"avatar_url":"https://avatars.githubusercontent.com/u/1986211?v=3","gravatar_id":"","url":"https://api.github.com/users/djblue","html_url":"https://github.com/djblue","followers_url":"https://api.github.com/users/djblue/followers","following_url":"https://api.github.com/users/djblue/following{/other_user}","gists_url":"https://api.github.com/users/djblue/gists{/gist_id}","starred_url":"https://api.github.com/users/djblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djblue/subscriptions","organizations_url":"https://api.github.com/users/djblue/orgs","repos_url":"https://api.github.com/users/djblue/repos","events_url":"https://api.github.com/users/djblue/events{/privacy}","received_events_url":"https://api.github.com/users/djblue/received_events","type":"User","site_admin":false},"body":"@clockard \r\n@vinamartin \r\n@gordocanchola \r\n\r\nWill squash commits when review is done.","created_at":"2016-01-22T02:25:03Z","updated_at":"2016-01-25T15:19:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28c627dcd7758f61479386be62792f13d4e69340","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clockard/ddf-registry/pulls/8/commits","review_comments_url":"https://api.github.com/repos/clockard/ddf-registry/pulls/8/comments","review_comment_url":"https://api.github.com/repos/clockard/ddf-registry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clockard/ddf-registry/issues/8/comments","statuses_url":"https://api.github.com/repos/clockard/ddf-registry/statuses/fdb68c8bb2bec122e7d2b8bf871e6b1761794931","head":{"label":"clockard:DDF-1743","ref":"DDF-1743","sha":"fdb68c8bb2bec122e7d2b8bf871e6b1761794931","user":{"login":"clockard","id":5248090,"avatar_url":"https://avatars.githubusercontent.com/u/5248090?v=3","gravatar_id":"","url":"https://api.github.com/users/clockard","html_url":"https://github.com/clockard","followers_url":"https://api.github.com/users/clockard/followers","following_url":"https://api.github.com/users/clockard/following{/other_user}","gists_url":"https://api.github.com/users/clockard/gists{/gist_id}","starred_url":"https://api.github.com/users/clockard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clockard/subscriptions","organizations_url":"https://api.github.com/users/clockard/orgs","repos_url":"https://api.github.com/users/clockard/repos","events_url":"https://api.github.com/users/clockard/events{/privacy}","received_events_url":"https://api.github.com/users/clockard/received_events","type":"User","site_admin":false},"repo":{"id":47836414,"name":"ddf-registry","full_name":"clockard/ddf-registry","owner":{"login":"clockard","id":5248090,"avatar_url":"https://avatars.githubusercontent.com/u/5248090?v=3","gravatar_id":"","url":"https://api.github.com/users/clockard","html_url":"https://github.com/clockard","followers_url":"https://api.github.com/users/clockard/followers","following_url":"https://api.github.com/users/clockard/following{/other_user}","gists_url":"https://api.github.com/users/clockard/gists{/gist_id}","starred_url":"https://api.github.com/users/clockard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clockard/subscriptions","organizations_url":"https://api.github.com/users/clockard/orgs","repos_url":"https://api.github.com/users/clockard/repos","events_url":"https://api.github.com/users/clockard/events{/privacy}","received_events_url":"https://api.github.com/users/clockard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clockard/ddf-registry","description":"","fork":false,"url":"https://api.github.com/repos/clockard/ddf-registry","forks_url":"https://api.github.com/repos/clockard/ddf-registry/forks","keys_url":"https://api.github.com/repos/clockard/ddf-registry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clockard/ddf-registry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clockard/ddf-registry/teams","hooks_url":"https://api.github.com/repos/clockard/ddf-registry/hooks","issue_events_url":"https://api.github.com/repos/clockard/ddf-registry/issues/events{/number}","events_url":"https://api.github.com/repos/clockard/ddf-registry/events","assignees_url":"https://api.github.com/repos/clockard/ddf-registry/assignees{/user}","branches_url":"https://api.github.com/repos/clockard/ddf-registry/branches{/branch}","tags_url":"https://api.github.com/repos/clockard/ddf-registry/tags","blobs_url":"https://api.github.com/repos/clockard/ddf-registry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clockard/ddf-registry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clockard/ddf-registry/git/refs{/sha}","trees_url":"https://api.github.com/repos/clockard/ddf-registry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clockard/ddf-registry/statuses/{sha}","languages_url":"https://api.github.com/repos/clockard/ddf-registry/languages","stargazers_url":"https://api.github.com/repos/clockard/ddf-registry/stargazers","contributors_url":"https://api.github.com/repos/clockard/ddf-registry/contributors","subscribers_url":"https://api.github.com/repos/clockard/ddf-registry/subscribers","subscription_url":"https://api.github.com/repos/clockard/ddf-registry/subscription","commits_url":"https://api.github.com/repos/clockard/ddf-registry/commits{/sha}","git_commits_url":"https://api.github.com/repos/clockard/ddf-registry/git/commits{/sha}","comments_url":"https://api.github.com/repos/clockard/ddf-registry/comments{/number}","issue_comment_url":"https://api.github.com/repos/clockard/ddf-registry/issues/comments{/number}","contents_url":"https://api.github.com/repos/clockard/ddf-registry/contents/{+path}","compare_url":"https://api.github.com/repos/clockard/ddf-registry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clockard/ddf-registry/merges","archive_url":"https://api.github.com/repos/clockard/ddf-registry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clockard/ddf-registry/downloads","issues_url":"https://api.github.com/repos/clockard/ddf-registry/issues{/number}","pulls_url":"https://api.github.com/repos/clockard/ddf-registry/pulls{/number}","milestones_url":"https://api.github.com/repos/clockard/ddf-registry/milestones{/number}","notifications_url":"https://api.github.com/repos/clockard/ddf-registry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clockard/ddf-registry/labels{/name}","releases_url":"https://api.github.com/repos/clockard/ddf-registry/releases{/id}","deployments_url":"https://api.github.com/repos/clockard/ddf-registry/deployments","created_at":"2015-12-11T16:05:52Z","updated_at":"2016-01-13T16:56:30Z","pushed_at":"2016-01-22T02:25:03Z","git_url":"git://github.com/clockard/ddf-registry.git","ssh_url":"git@github.com:clockard/ddf-registry.git","clone_url":"https://github.com/clockard/ddf-registry.git","svn_url":"https://github.com/clockard/ddf-registry","homepage":null,"size":116612,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"clockard:master","ref":"master","sha":"e545eb87e0209aff0734eb2cd40c53c00ed5ac6e","user":{"login":"clockard","id":5248090,"avatar_url":"https://avatars.githubusercontent.com/u/5248090?v=3","gravatar_id":"","url":"https://api.github.com/users/clockard","html_url":"https://github.com/clockard","followers_url":"https://api.github.com/users/clockard/followers","following_url":"https://api.github.com/users/clockard/following{/other_user}","gists_url":"https://api.github.com/users/clockard/gists{/gist_id}","starred_url":"https://api.github.com/users/clockard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clockard/subscriptions","organizations_url":"https://api.github.com/users/clockard/orgs","repos_url":"https://api.github.com/users/clockard/repos","events_url":"https://api.github.com/users/clockard/events{/privacy}","received_events_url":"https://api.github.com/users/clockard/received_events","type":"User","site_admin":false},"repo":{"id":47836414,"name":"ddf-registry","full_name":"clockard/ddf-registry","owner":{"login":"clockard","id":5248090,"avatar_url":"https://avatars.githubusercontent.com/u/5248090?v=3","gravatar_id":"","url":"https://api.github.com/users/clockard","html_url":"https://github.com/clockard","followers_url":"https://api.github.com/users/clockard/followers","following_url":"https://api.github.com/users/clockard/following{/other_user}","gists_url":"https://api.github.com/users/clockard/gists{/gist_id}","starred_url":"https://api.github.com/users/clockard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clockard/subscriptions","organizations_url":"https://api.github.com/users/clockard/orgs","repos_url":"https://api.github.com/users/clockard/repos","events_url":"https://api.github.com/users/clockard/events{/privacy}","received_events_url":"https://api.github.com/users/clockard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clockard/ddf-registry","description":"","fork":false,"url":"https://api.github.com/repos/clockard/ddf-registry","forks_url":"https://api.github.com/repos/clockard/ddf-registry/forks","keys_url":"https://api.github.com/repos/clockard/ddf-registry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clockard/ddf-registry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clockard/ddf-registry/teams","hooks_url":"https://api.github.com/repos/clockard/ddf-registry/hooks","issue_events_url":"https://api.github.com/repos/clockard/ddf-registry/issues/events{/number}","events_url":"https://api.github.com/repos/clockard/ddf-registry/events","assignees_url":"https://api.github.com/repos/clockard/ddf-registry/assignees{/user}","branches_url":"https://api.github.com/repos/clockard/ddf-registry/branches{/branch}","tags_url":"https://api.github.com/repos/clockard/ddf-registry/tags","blobs_url":"https://api.github.com/repos/clockard/ddf-registry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clockard/ddf-registry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clockard/ddf-registry/git/refs{/sha}","trees_url":"https://api.github.com/repos/clockard/ddf-registry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clockard/ddf-registry/statuses/{sha}","languages_url":"https://api.github.com/repos/clockard/ddf-registry/languages","stargazers_url":"https://api.github.com/repos/clockard/ddf-registry/stargazers","contributors_url":"https://api.github.com/repos/clockard/ddf-registry/contributors","subscribers_url":"https://api.github.com/repos/clockard/ddf-registry/subscribers","subscription_url":"https://api.github.com/repos/clockard/ddf-registry/subscription","commits_url":"https://api.github.com/repos/clockard/ddf-registry/commits{/sha}","git_commits_url":"https://api.github.com/repos/clockard/ddf-registry/git/commits{/sha}","comments_url":"https://api.github.com/repos/clockard/ddf-registry/comments{/number}","issue_comment_url":"https://api.github.com/repos/clockard/ddf-registry/issues/comments{/number}","contents_url":"https://api.github.com/repos/clockard/ddf-registry/contents/{+path}","compare_url":"https://api.github.com/repos/clockard/ddf-registry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clockard/ddf-registry/merges","archive_url":"https://api.github.com/repos/clockard/ddf-registry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clockard/ddf-registry/downloads","issues_url":"https://api.github.com/repos/clockard/ddf-registry/issues{/number}","pulls_url":"https://api.github.com/repos/clockard/ddf-registry/pulls{/number}","milestones_url":"https://api.github.com/repos/clockard/ddf-registry/milestones{/number}","notifications_url":"https://api.github.com/repos/clockard/ddf-registry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clockard/ddf-registry/labels{/name}","releases_url":"https://api.github.com/repos/clockard/ddf-registry/releases{/id}","deployments_url":"https://api.github.com/repos/clockard/ddf-registry/deployments","created_at":"2015-12-11T16:05:52Z","updated_at":"2016-01-13T16:56:30Z","pushed_at":"2016-01-22T02:25:03Z","git_url":"git://github.com/clockard/ddf-registry.git","ssh_url":"git@github.com:clockard/ddf-registry.git","clone_url":"https://github.com/clockard/ddf-registry.git","svn_url":"https://github.com/clockard/ddf-registry","homepage":null,"size":116612,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clockard/ddf-registry/pulls/8"},"html":{"href":"https://github.com/clockard/ddf-registry/pull/8"},"issue":{"href":"https://api.github.com/repos/clockard/ddf-registry/issues/8"},"comments":{"href":"https://api.github.com/repos/clockard/ddf-registry/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/clockard/ddf-registry/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/clockard/ddf-registry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clockard/ddf-registry/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/clockard/ddf-registry/statuses/fdb68c8bb2bec122e7d2b8bf871e6b1761794931"}}}}