{"action":"created","comment":{"url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/comments/52127391","id":52127391,"diff_hunk":"@@ -0,0 +1,59 @@\n+package au.gov.ga.hydroid.controller;\n+\n+import au.gov.ga.hydroid.model.Document;\n+import au.gov.ga.hydroid.service.EnhancerService;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.web.bind.annotation.ModelAttribute;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RequestMethod;\n+import org.springframework.web.servlet.ModelAndView;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+/**\n+ * Created by u24529 on 3/02/2016.\n+ */\n+@Controller\n+@RequestMapping(\"/enhancer\")\n+public class EnhancerController {\n+\n+   private Logger logger = LoggerFactory.getLogger(getClass());\n+\n+   @Autowired\n+   private EnhancerService enhancerService;\n+\n+   @RequestMapping(value = \"\", method = {RequestMethod.GET})\n+   public String index(Map<String, String> model) throws Exception {\n+      model.clear();\n+      return \"enhance\";\n+   }\n+\n+   @RequestMapping(value = \"\", method = {RequestMethod.POST})\n+   public ModelAndView enhance(@ModelAttribute Document document) throws Exception {","path":"src/main/java/au/gov/ga/hydroid/controller/EnhancerController.java","position":36,"original_position":36,"commit_id":"ff418c1e3aa25369431a348dcd1dacd2040699e8","original_commit_id":"ff418c1e3aa25369431a348dcd1dacd2040699e8","user":{"login":"Layoric","id":234642,"avatar_url":"https://avatars.githubusercontent.com/u/234642?v=3","gravatar_id":"","url":"https://api.github.com/users/Layoric","html_url":"https://github.com/Layoric","followers_url":"https://api.github.com/users/Layoric/followers","following_url":"https://api.github.com/users/Layoric/following{/other_user}","gists_url":"https://api.github.com/users/Layoric/gists{/gist_id}","starred_url":"https://api.github.com/users/Layoric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Layoric/subscriptions","organizations_url":"https://api.github.com/users/Layoric/orgs","repos_url":"https://api.github.com/users/Layoric/repos","events_url":"https://api.github.com/users/Layoric/events{/privacy}","received_events_url":"https://api.github.com/users/Layoric/received_events","type":"User","site_admin":false},"body":"This might have to change to something representing a simple `title` and `content` to support different types of content, but for now all we need.","created_at":"2016-02-07T23:43:31Z","updated_at":"2016-02-07T23:43:31Z","html_url":"https://github.com/GeoscienceAustralia/hydroid/pull/1#discussion_r52127391","pull_request_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/comments/52127391"},"html":{"href":"https://github.com/GeoscienceAustralia/hydroid/pull/1#discussion_r52127391"},"pull_request":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1","id":58390086,"html_url":"https://github.com/GeoscienceAustralia/hydroid/pull/1","diff_url":"https://github.com/GeoscienceAustralia/hydroid/pull/1.diff","patch_url":"https://github.com/GeoscienceAustralia/hydroid/pull/1.patch","issue_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/1","number":1,"state":"open","locked":false,"title":"Enhancer client","user":{"login":"scelton","id":8649060,"avatar_url":"https://avatars.githubusercontent.com/u/8649060?v=3","gravatar_id":"","url":"https://api.github.com/users/scelton","html_url":"https://github.com/scelton","followers_url":"https://api.github.com/users/scelton/followers","following_url":"https://api.github.com/users/scelton/following{/other_user}","gists_url":"https://api.github.com/users/scelton/gists{/gist_id}","starred_url":"https://api.github.com/users/scelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scelton/subscriptions","organizations_url":"https://api.github.com/users/scelton/orgs","repos_url":"https://api.github.com/users/scelton/repos","events_url":"https://api.github.com/users/scelton/events{/privacy}","received_events_url":"https://api.github.com/users/scelton/received_events","type":"User","site_admin":false},"body":"- Process to post content to Stanbol, parse the results and stored document in Solr\r\nwith full original document being saved in the database.\r\n- Simple UI for the enhancement process\r\n- Endpoint to download full enhanced document from database\r\n","created_at":"2016-02-05T05:29:21Z","updated_at":"2016-02-07T23:43:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c852468cc392b9f69fedf10d25649194ed7eded","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1/commits","review_comments_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1/comments","review_comment_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/1/comments","statuses_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/statuses/ff418c1e3aa25369431a348dcd1dacd2040699e8","head":{"label":"GeoscienceAustralia:enhancer-client","ref":"enhancer-client","sha":"ff418c1e3aa25369431a348dcd1dacd2040699e8","user":{"login":"GeoscienceAustralia","id":4704285,"avatar_url":"https://avatars.githubusercontent.com/u/4704285?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoscienceAustralia","html_url":"https://github.com/GeoscienceAustralia","followers_url":"https://api.github.com/users/GeoscienceAustralia/followers","following_url":"https://api.github.com/users/GeoscienceAustralia/following{/other_user}","gists_url":"https://api.github.com/users/GeoscienceAustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoscienceAustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoscienceAustralia/subscriptions","organizations_url":"https://api.github.com/users/GeoscienceAustralia/orgs","repos_url":"https://api.github.com/users/GeoscienceAustralia/repos","events_url":"https://api.github.com/users/GeoscienceAustralia/events{/privacy}","received_events_url":"https://api.github.com/users/GeoscienceAustralia/received_events","type":"Organization","site_admin":false},"repo":{"id":48009637,"name":"hydroid","full_name":"GeoscienceAustralia/hydroid","owner":{"login":"GeoscienceAustralia","id":4704285,"avatar_url":"https://avatars.githubusercontent.com/u/4704285?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoscienceAustralia","html_url":"https://github.com/GeoscienceAustralia","followers_url":"https://api.github.com/users/GeoscienceAustralia/followers","following_url":"https://api.github.com/users/GeoscienceAustralia/following{/other_user}","gists_url":"https://api.github.com/users/GeoscienceAustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoscienceAustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoscienceAustralia/subscriptions","organizations_url":"https://api.github.com/users/GeoscienceAustralia/orgs","repos_url":"https://api.github.com/users/GeoscienceAustralia/repos","events_url":"https://api.github.com/users/GeoscienceAustralia/events{/privacy}","received_events_url":"https://api.github.com/users/GeoscienceAustralia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GeoscienceAustralia/hydroid","description":"","fork":false,"url":"https://api.github.com/repos/GeoscienceAustralia/hydroid","forks_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/forks","keys_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/teams","hooks_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/hooks","issue_events_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/events{/number}","events_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/events","assignees_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/assignees{/user}","branches_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/branches{/branch}","tags_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/tags","blobs_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/statuses/{sha}","languages_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/languages","stargazers_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/stargazers","contributors_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/contributors","subscribers_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/subscribers","subscription_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/subscription","commits_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/contents/{+path}","compare_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/merges","archive_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/downloads","issues_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues{/number}","pulls_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls{/number}","milestones_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/milestones{/number}","notifications_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/labels{/name}","releases_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/releases{/id}","deployments_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/deployments","created_at":"2015-12-15T00:27:59Z","updated_at":"2016-02-03T04:35:11Z","pushed_at":"2016-02-05T06:02:15Z","git_url":"git://github.com/GeoscienceAustralia/hydroid.git","ssh_url":"git@github.com:GeoscienceAustralia/hydroid.git","clone_url":"https://github.com/GeoscienceAustralia/hydroid.git","svn_url":"https://github.com/GeoscienceAustralia/hydroid","homepage":null,"size":59824,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GeoscienceAustralia:master","ref":"master","sha":"1825a623f1596111180e5afd25ea88ea007c41a4","user":{"login":"GeoscienceAustralia","id":4704285,"avatar_url":"https://avatars.githubusercontent.com/u/4704285?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoscienceAustralia","html_url":"https://github.com/GeoscienceAustralia","followers_url":"https://api.github.com/users/GeoscienceAustralia/followers","following_url":"https://api.github.com/users/GeoscienceAustralia/following{/other_user}","gists_url":"https://api.github.com/users/GeoscienceAustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoscienceAustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoscienceAustralia/subscriptions","organizations_url":"https://api.github.com/users/GeoscienceAustralia/orgs","repos_url":"https://api.github.com/users/GeoscienceAustralia/repos","events_url":"https://api.github.com/users/GeoscienceAustralia/events{/privacy}","received_events_url":"https://api.github.com/users/GeoscienceAustralia/received_events","type":"Organization","site_admin":false},"repo":{"id":48009637,"name":"hydroid","full_name":"GeoscienceAustralia/hydroid","owner":{"login":"GeoscienceAustralia","id":4704285,"avatar_url":"https://avatars.githubusercontent.com/u/4704285?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoscienceAustralia","html_url":"https://github.com/GeoscienceAustralia","followers_url":"https://api.github.com/users/GeoscienceAustralia/followers","following_url":"https://api.github.com/users/GeoscienceAustralia/following{/other_user}","gists_url":"https://api.github.com/users/GeoscienceAustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoscienceAustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoscienceAustralia/subscriptions","organizations_url":"https://api.github.com/users/GeoscienceAustralia/orgs","repos_url":"https://api.github.com/users/GeoscienceAustralia/repos","events_url":"https://api.github.com/users/GeoscienceAustralia/events{/privacy}","received_events_url":"https://api.github.com/users/GeoscienceAustralia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GeoscienceAustralia/hydroid","description":"","fork":false,"url":"https://api.github.com/repos/GeoscienceAustralia/hydroid","forks_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/forks","keys_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/teams","hooks_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/hooks","issue_events_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/events{/number}","events_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/events","assignees_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/assignees{/user}","branches_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/branches{/branch}","tags_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/tags","blobs_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/statuses/{sha}","languages_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/languages","stargazers_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/stargazers","contributors_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/contributors","subscribers_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/subscribers","subscription_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/subscription","commits_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/contents/{+path}","compare_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/merges","archive_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/downloads","issues_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues{/number}","pulls_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls{/number}","milestones_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/milestones{/number}","notifications_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/labels{/name}","releases_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/releases{/id}","deployments_url":"https://api.github.com/repos/GeoscienceAustralia/hydroid/deployments","created_at":"2015-12-15T00:27:59Z","updated_at":"2016-02-03T04:35:11Z","pushed_at":"2016-02-05T06:02:15Z","git_url":"git://github.com/GeoscienceAustralia/hydroid.git","ssh_url":"git@github.com:GeoscienceAustralia/hydroid.git","clone_url":"https://github.com/GeoscienceAustralia/hydroid.git","svn_url":"https://github.com/GeoscienceAustralia/hydroid","homepage":null,"size":59824,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1"},"html":{"href":"https://github.com/GeoscienceAustralia/hydroid/pull/1"},"issue":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/1"},"comments":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/GeoscienceAustralia/hydroid/statuses/ff418c1e3aa25369431a348dcd1dacd2040699e8"}}}}