{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf/pulls/comments/57389586","id":57389586,"diff_hunk":"@@ -0,0 +1,35 @@\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 ddf.catalog.validation;\n+\n+import ddf.catalog.data.Metacard;\n+import ddf.catalog.validation.report.MetacardValidationReport;\n+\n+/**\n+ * Validates a {@link Metacard} and provides information via a report if problems exist with the\n+ * {@link Metacard}'s data.\n+ * <p>\n+ * <b> This code is experimental. While this interface is functional and tested, it may change or be\n+ * removed in a future version of the library. </b>\n+ * </p>\n+ */\n+public interface ReportingMetacardValidator {\n+    /**\n+     * Validates a {@link Metacard}.\n+     *\n+     * @param metacard the {@link Metacard} to validate\n+     * @return a {@link MetacardValidationReport} describing the outcome\n+     */\n+    MetacardValidationReport validateByReport(Metacard metacard);","path":"catalog/core/catalog-core-api/src/main/java/ddf/catalog/validation/ReportingMetacardValidator.java","position":34,"original_position":34,"commit_id":"f8765d265c10c177fb6f0ff30ee197704cc213da","original_commit_id":"f8765d265c10c177fb6f0ff30ee197704cc213da","user":{"login":"jrnorth","id":4495447,"avatar_url":"https://avatars.githubusercontent.com/u/4495447?v=3","gravatar_id":"","url":"https://api.github.com/users/jrnorth","html_url":"https://github.com/jrnorth","followers_url":"https://api.github.com/users/jrnorth/followers","following_url":"https://api.github.com/users/jrnorth/following{/other_user}","gists_url":"https://api.github.com/users/jrnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/jrnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrnorth/subscriptions","organizations_url":"https://api.github.com/users/jrnorth/orgs","repos_url":"https://api.github.com/users/jrnorth/repos","events_url":"https://api.github.com/users/jrnorth/events{/privacy}","received_events_url":"https://api.github.com/users/jrnorth/received_events","type":"User","site_admin":false},"body":"`reportValidation`?","created_at":"2016-03-24T21:19:36Z","updated_at":"2016-03-24T21:19:36Z","html_url":"https://github.com/codice/ddf/pull/642#discussion_r57389586","pull_request_url":"https://api.github.com/repos/codice/ddf/pulls/642","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments/57389586"},"html":{"href":"https://github.com/codice/ddf/pull/642#discussion_r57389586"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf/pulls/642"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/642","id":63957806,"html_url":"https://github.com/codice/ddf/pull/642","diff_url":"https://github.com/codice/ddf/pull/642.diff","patch_url":"https://github.com/codice/ddf/pull/642.patch","issue_url":"https://api.github.com/repos/codice/ddf/issues/642","number":642,"state":"open","locked":false,"title":"DDF-1978 Create and implement a new metacard validation API","user":{"login":"jrnorth","id":4495447,"avatar_url":"https://avatars.githubusercontent.com/u/4495447?v=3","gravatar_id":"","url":"https://api.github.com/users/jrnorth","html_url":"https://github.com/jrnorth","followers_url":"https://api.github.com/users/jrnorth/followers","following_url":"https://api.github.com/users/jrnorth/following{/other_user}","gists_url":"https://api.github.com/users/jrnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/jrnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrnorth/subscriptions","organizations_url":"https://api.github.com/users/jrnorth/orgs","repos_url":"https://api.github.com/users/jrnorth/repos","events_url":"https://api.github.com/users/jrnorth/events{/privacy}","received_events_url":"https://api.github.com/users/jrnorth/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nCreate a new metacard validation API and provide an implementation.\r\n\r\nProvides the ability to create new validators, attribute types, and metacard types by dropping JSON files into a directory.\r\n\r\n#### Who is reviewing it?\r\n@rzwiefel @pklinef @jlcsmith @kcwire \r\n\r\n#### What are the relevant tickets?\r\nhttps://codice.atlassian.net/browse/DDF-1978\r\n\r\n#### Checklist:\r\n- [ ] Documentation Updated\r\n- [x] Update / Add Unit Tests\r\n- [ ] Update / Add Integration Tests\r\n\r\n#### ==== Notes ====\r\nThe new APIs added in this PR are marked as **experimental**. The existing APIs are **not** being deprecated.","created_at":"2016-03-23T21:43:25Z","updated_at":"2016-03-24T21:19:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"626a95e8bfecfa205d2163caa5ad6455f4c4d74d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf/pulls/642/commits","review_comments_url":"https://api.github.com/repos/codice/ddf/pulls/642/comments","review_comment_url":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf/issues/642/comments","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/f8765d265c10c177fb6f0ff30ee197704cc213da","head":{"label":"jrnorth:validation-impl","ref":"validation-impl","sha":"f8765d265c10c177fb6f0ff30ee197704cc213da","user":{"login":"jrnorth","id":4495447,"avatar_url":"https://avatars.githubusercontent.com/u/4495447?v=3","gravatar_id":"","url":"https://api.github.com/users/jrnorth","html_url":"https://github.com/jrnorth","followers_url":"https://api.github.com/users/jrnorth/followers","following_url":"https://api.github.com/users/jrnorth/following{/other_user}","gists_url":"https://api.github.com/users/jrnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/jrnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrnorth/subscriptions","organizations_url":"https://api.github.com/users/jrnorth/orgs","repos_url":"https://api.github.com/users/jrnorth/repos","events_url":"https://api.github.com/users/jrnorth/events{/privacy}","received_events_url":"https://api.github.com/users/jrnorth/received_events","type":"User","site_admin":false},"repo":{"id":40272076,"name":"ddf","full_name":"jrnorth/ddf","owner":{"login":"jrnorth","id":4495447,"avatar_url":"https://avatars.githubusercontent.com/u/4495447?v=3","gravatar_id":"","url":"https://api.github.com/users/jrnorth","html_url":"https://github.com/jrnorth","followers_url":"https://api.github.com/users/jrnorth/followers","following_url":"https://api.github.com/users/jrnorth/following{/other_user}","gists_url":"https://api.github.com/users/jrnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/jrnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrnorth/subscriptions","organizations_url":"https://api.github.com/users/jrnorth/orgs","repos_url":"https://api.github.com/users/jrnorth/repos","events_url":"https://api.github.com/users/jrnorth/events{/privacy}","received_events_url":"https://api.github.com/users/jrnorth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrnorth/ddf","description":"The Distributed Data Framework - Distribution, SDK, and Test","fork":true,"url":"https://api.github.com/repos/jrnorth/ddf","forks_url":"https://api.github.com/repos/jrnorth/ddf/forks","keys_url":"https://api.github.com/repos/jrnorth/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrnorth/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrnorth/ddf/teams","hooks_url":"https://api.github.com/repos/jrnorth/ddf/hooks","issue_events_url":"https://api.github.com/repos/jrnorth/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/jrnorth/ddf/events","assignees_url":"https://api.github.com/repos/jrnorth/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/jrnorth/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/jrnorth/ddf/tags","blobs_url":"https://api.github.com/repos/jrnorth/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrnorth/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrnorth/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrnorth/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrnorth/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/jrnorth/ddf/languages","stargazers_url":"https://api.github.com/repos/jrnorth/ddf/stargazers","contributors_url":"https://api.github.com/repos/jrnorth/ddf/contributors","subscribers_url":"https://api.github.com/repos/jrnorth/ddf/subscribers","subscription_url":"https://api.github.com/repos/jrnorth/ddf/subscription","commits_url":"https://api.github.com/repos/jrnorth/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrnorth/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrnorth/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrnorth/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrnorth/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/jrnorth/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrnorth/ddf/merges","archive_url":"https://api.github.com/repos/jrnorth/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrnorth/ddf/downloads","issues_url":"https://api.github.com/repos/jrnorth/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/jrnorth/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/jrnorth/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/jrnorth/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrnorth/ddf/labels{/name}","releases_url":"https://api.github.com/repos/jrnorth/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/jrnorth/ddf/deployments","created_at":"2015-08-05T22:33:54Z","updated_at":"2016-01-11T16:11:49Z","pushed_at":"2016-03-24T20:42:39Z","git_url":"git://github.com/jrnorth/ddf.git","ssh_url":"git@github.com:jrnorth/ddf.git","clone_url":"https://github.com/jrnorth/ddf.git","svn_url":"https://github.com/jrnorth/ddf","homepage":"","size":138316,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"codice:master","ref":"master","sha":"2e669f20682a11604faccff02382f79db9cc1d7e","user":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":15173563,"name":"ddf","full_name":"codice/ddf","owner":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codice/ddf","description":"The Distributed Data Framework - Federated Open Geospatial Consortium (OGC) filter powered metadata catalog with SAML Web SSO secured container","fork":false,"url":"https://api.github.com/repos/codice/ddf","forks_url":"https://api.github.com/repos/codice/ddf/forks","keys_url":"https://api.github.com/repos/codice/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/ddf/teams","hooks_url":"https://api.github.com/repos/codice/ddf/hooks","issue_events_url":"https://api.github.com/repos/codice/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/codice/ddf/events","assignees_url":"https://api.github.com/repos/codice/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/codice/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/codice/ddf/tags","blobs_url":"https://api.github.com/repos/codice/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/ddf/languages","stargazers_url":"https://api.github.com/repos/codice/ddf/stargazers","contributors_url":"https://api.github.com/repos/codice/ddf/contributors","subscribers_url":"https://api.github.com/repos/codice/ddf/subscribers","subscription_url":"https://api.github.com/repos/codice/ddf/subscription","commits_url":"https://api.github.com/repos/codice/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/codice/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/ddf/merges","archive_url":"https://api.github.com/repos/codice/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/ddf/downloads","issues_url":"https://api.github.com/repos/codice/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/codice/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/ddf/labels{/name}","releases_url":"https://api.github.com/repos/codice/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/codice/ddf/deployments","created_at":"2013-12-13T20:38:28Z","updated_at":"2016-03-17T15:01:17Z","pushed_at":"2016-03-24T21:10:41Z","git_url":"git://github.com/codice/ddf.git","ssh_url":"git@github.com:codice/ddf.git","clone_url":"https://github.com/codice/ddf.git","svn_url":"https://github.com/codice/ddf","homepage":"","size":147296,"stargazers_count":35,"watchers_count":35,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":73,"mirror_url":null,"open_issues_count":16,"forks":73,"open_issues":16,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/642"},"html":{"href":"https://github.com/codice/ddf/pull/642"},"issue":{"href":"https://api.github.com/repos/codice/ddf/issues/642"},"comments":{"href":"https://api.github.com/repos/codice/ddf/issues/642/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf/pulls/642/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf/pulls/642/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf/statuses/f8765d265c10c177fb6f0ff30ee197704cc213da"}}}}