{"action":"created","comment":{"url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/comments/87555869","pull_request_review_id":8164198,"id":87555869,"diff_hunk":"@@ -0,0 +1,53 @@\n+package org.sbx.servlet;\n+\n+import org.sbx.enums.Bean;\n+import org.sbx.enums.EnumDateFormat;\n+import org.sbx.service.Service;\n+import org.sbx.spring.bo.RecordBO;\n+import org.sbx.spring.bo.RecordBOImpl.ESK363RecordBO;\n+import org.sbx.spring.model.RecordImpl.ESK363DBRecord;\n+import org.springframework.context.ApplicationContext;\n+import org.springframework.context.support.ClassPathXmlApplicationContext;\n+import org.springframework.web.context.WebApplicationContext;\n+import org.springframework.web.context.support.WebApplicationContextUtils;\n+\n+import javax.servlet.RequestDispatcher;\n+import javax.servlet.ServletException;\n+import javax.servlet.http.HttpServlet;\n+import javax.servlet.http.HttpServletRequest;\n+import javax.servlet.http.HttpServletResponse;\n+import java.io.IOException;\n+import java.text.DateFormat;\n+import java.text.SimpleDateFormat;\n+import java.util.ArrayList;\n+import java.util.Date;\n+\n+/**\n+ * Created by aloginov on 01.11.16.\n+ */\n+public class ESK363RangeServlet extends HttpServlet {\n+\n+    //private RecordBO esk363RecordBO;\n+\n+    //public void setEsk363RecordBO(RecordBO esk363RecordBO){\n+    //    this.esk363RecordBO = esk363RecordBO;\n+    //}\n+\n+    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\n+\n+        WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());\n+\n+        RecordBO esk363RecordBO = (ESK363RecordBO) context.getBean(Bean.ESK363_RECORD_BO.toString());\n+\n+        Date dateFrom = Service.stringToDate(request.getParameter(\"startDate\"), EnumDateFormat.INPUT.getFormat());\n+        Date dateTo = Service.stringToDate(request.getParameter(\"endDate\"), EnumDateFormat.INPUT.getFormat());\n+\n+        ArrayList<ESK363DBRecord> resultList = (ArrayList) esk363RecordBO.findByDateRange(dateFrom, dateTo);","path":"src/main/java/org/sbx/servlet/ESK363RangeServlet.java","position":45,"original_position":45,"commit_id":"2bb410ddf92f35706113ffab13f5156235629bd6","original_commit_id":"2bb410ddf92f35706113ffab13f5156235629bd6","user":{"login":"adxfighter","id":21956414,"avatar_url":"https://avatars.githubusercontent.com/u/21956414?v=3","gravatar_id":"","url":"https://api.github.com/users/adxfighter","html_url":"https://github.com/adxfighter","followers_url":"https://api.github.com/users/adxfighter/followers","following_url":"https://api.github.com/users/adxfighter/following{/other_user}","gists_url":"https://api.github.com/users/adxfighter/gists{/gist_id}","starred_url":"https://api.github.com/users/adxfighter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adxfighter/subscriptions","organizations_url":"https://api.github.com/users/adxfighter/orgs","repos_url":"https://api.github.com/users/adxfighter/repos","events_url":"https://api.github.com/users/adxfighter/events{/privacy}","received_events_url":"https://api.github.com/users/adxfighter/received_events","type":"User","site_admin":false},"body":"Add INFO logging. It helps to debug errors and makes code clear","created_at":"2016-11-11T08:57:28Z","updated_at":"2016-11-11T08:57:28Z","html_url":"https://github.com/LoginovAS/ParserSpring/pull/2#discussion_r87555869","pull_request_url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/comments/87555869"},"html":{"href":"https://github.com/LoginovAS/ParserSpring/pull/2#discussion_r87555869"},"pull_request":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2","id":93190290,"html_url":"https://github.com/LoginovAS/ParserSpring/pull/2","diff_url":"https://github.com/LoginovAS/ParserSpring/pull/2.diff","patch_url":"https://github.com/LoginovAS/ParserSpring/pull/2.patch","issue_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/2","number":2,"state":"open","locked":false,"title":"Fb chart view","user":{"login":"LoginovAS","id":8480558,"avatar_url":"https://avatars.githubusercontent.com/u/8480558?v=3","gravatar_id":"","url":"https://api.github.com/users/LoginovAS","html_url":"https://github.com/LoginovAS","followers_url":"https://api.github.com/users/LoginovAS/followers","following_url":"https://api.github.com/users/LoginovAS/following{/other_user}","gists_url":"https://api.github.com/users/LoginovAS/gists{/gist_id}","starred_url":"https://api.github.com/users/LoginovAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoginovAS/subscriptions","organizations_url":"https://api.github.com/users/LoginovAS/orgs","repos_url":"https://api.github.com/users/LoginovAS/repos","events_url":"https://api.github.com/users/LoginovAS/events{/privacy}","received_events_url":"https://api.github.com/users/LoginovAS/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T17:01:20Z","updated_at":"2016-11-11T08:57:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f98cc11a2a49e9c9a54c357e2864dff7a59e9b1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2/commits","review_comments_url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2/comments","review_comment_url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/2/comments","statuses_url":"https://api.github.com/repos/LoginovAS/ParserSpring/statuses/2bb410ddf92f35706113ffab13f5156235629bd6","head":{"label":"LoginovAS:fb-chart-view","ref":"fb-chart-view","sha":"2bb410ddf92f35706113ffab13f5156235629bd6","user":{"login":"LoginovAS","id":8480558,"avatar_url":"https://avatars.githubusercontent.com/u/8480558?v=3","gravatar_id":"","url":"https://api.github.com/users/LoginovAS","html_url":"https://github.com/LoginovAS","followers_url":"https://api.github.com/users/LoginovAS/followers","following_url":"https://api.github.com/users/LoginovAS/following{/other_user}","gists_url":"https://api.github.com/users/LoginovAS/gists{/gist_id}","starred_url":"https://api.github.com/users/LoginovAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoginovAS/subscriptions","organizations_url":"https://api.github.com/users/LoginovAS/orgs","repos_url":"https://api.github.com/users/LoginovAS/repos","events_url":"https://api.github.com/users/LoginovAS/events{/privacy}","received_events_url":"https://api.github.com/users/LoginovAS/received_events","type":"User","site_admin":false},"repo":{"id":72560378,"name":"ParserSpring","full_name":"LoginovAS/ParserSpring","owner":{"login":"LoginovAS","id":8480558,"avatar_url":"https://avatars.githubusercontent.com/u/8480558?v=3","gravatar_id":"","url":"https://api.github.com/users/LoginovAS","html_url":"https://github.com/LoginovAS","followers_url":"https://api.github.com/users/LoginovAS/followers","following_url":"https://api.github.com/users/LoginovAS/following{/other_user}","gists_url":"https://api.github.com/users/LoginovAS/gists{/gist_id}","starred_url":"https://api.github.com/users/LoginovAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoginovAS/subscriptions","organizations_url":"https://api.github.com/users/LoginovAS/orgs","repos_url":"https://api.github.com/users/LoginovAS/repos","events_url":"https://api.github.com/users/LoginovAS/events{/privacy}","received_events_url":"https://api.github.com/users/LoginovAS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LoginovAS/ParserSpring","description":null,"fork":false,"url":"https://api.github.com/repos/LoginovAS/ParserSpring","forks_url":"https://api.github.com/repos/LoginovAS/ParserSpring/forks","keys_url":"https://api.github.com/repos/LoginovAS/ParserSpring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LoginovAS/ParserSpring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LoginovAS/ParserSpring/teams","hooks_url":"https://api.github.com/repos/LoginovAS/ParserSpring/hooks","issue_events_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/events{/number}","events_url":"https://api.github.com/repos/LoginovAS/ParserSpring/events","assignees_url":"https://api.github.com/repos/LoginovAS/ParserSpring/assignees{/user}","branches_url":"https://api.github.com/repos/LoginovAS/ParserSpring/branches{/branch}","tags_url":"https://api.github.com/repos/LoginovAS/ParserSpring/tags","blobs_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/refs{/sha}","trees_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LoginovAS/ParserSpring/statuses/{sha}","languages_url":"https://api.github.com/repos/LoginovAS/ParserSpring/languages","stargazers_url":"https://api.github.com/repos/LoginovAS/ParserSpring/stargazers","contributors_url":"https://api.github.com/repos/LoginovAS/ParserSpring/contributors","subscribers_url":"https://api.github.com/repos/LoginovAS/ParserSpring/subscribers","subscription_url":"https://api.github.com/repos/LoginovAS/ParserSpring/subscription","commits_url":"https://api.github.com/repos/LoginovAS/ParserSpring/commits{/sha}","git_commits_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/commits{/sha}","comments_url":"https://api.github.com/repos/LoginovAS/ParserSpring/comments{/number}","issue_comment_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/comments{/number}","contents_url":"https://api.github.com/repos/LoginovAS/ParserSpring/contents/{+path}","compare_url":"https://api.github.com/repos/LoginovAS/ParserSpring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LoginovAS/ParserSpring/merges","archive_url":"https://api.github.com/repos/LoginovAS/ParserSpring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LoginovAS/ParserSpring/downloads","issues_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues{/number}","pulls_url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls{/number}","milestones_url":"https://api.github.com/repos/LoginovAS/ParserSpring/milestones{/number}","notifications_url":"https://api.github.com/repos/LoginovAS/ParserSpring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LoginovAS/ParserSpring/labels{/name}","releases_url":"https://api.github.com/repos/LoginovAS/ParserSpring/releases{/id}","deployments_url":"https://api.github.com/repos/LoginovAS/ParserSpring/deployments","created_at":"2016-11-01T17:36:56Z","updated_at":"2016-11-01T17:36:56Z","pushed_at":"2016-11-10T17:01:20Z","git_url":"git://github.com/LoginovAS/ParserSpring.git","ssh_url":"git@github.com:LoginovAS/ParserSpring.git","clone_url":"https://github.com/LoginovAS/ParserSpring.git","svn_url":"https://github.com/LoginovAS/ParserSpring","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"LoginovAS:master","ref":"master","sha":"e8b6acb51d54032b63a946c7644c1882203d581e","user":{"login":"LoginovAS","id":8480558,"avatar_url":"https://avatars.githubusercontent.com/u/8480558?v=3","gravatar_id":"","url":"https://api.github.com/users/LoginovAS","html_url":"https://github.com/LoginovAS","followers_url":"https://api.github.com/users/LoginovAS/followers","following_url":"https://api.github.com/users/LoginovAS/following{/other_user}","gists_url":"https://api.github.com/users/LoginovAS/gists{/gist_id}","starred_url":"https://api.github.com/users/LoginovAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoginovAS/subscriptions","organizations_url":"https://api.github.com/users/LoginovAS/orgs","repos_url":"https://api.github.com/users/LoginovAS/repos","events_url":"https://api.github.com/users/LoginovAS/events{/privacy}","received_events_url":"https://api.github.com/users/LoginovAS/received_events","type":"User","site_admin":false},"repo":{"id":72560378,"name":"ParserSpring","full_name":"LoginovAS/ParserSpring","owner":{"login":"LoginovAS","id":8480558,"avatar_url":"https://avatars.githubusercontent.com/u/8480558?v=3","gravatar_id":"","url":"https://api.github.com/users/LoginovAS","html_url":"https://github.com/LoginovAS","followers_url":"https://api.github.com/users/LoginovAS/followers","following_url":"https://api.github.com/users/LoginovAS/following{/other_user}","gists_url":"https://api.github.com/users/LoginovAS/gists{/gist_id}","starred_url":"https://api.github.com/users/LoginovAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoginovAS/subscriptions","organizations_url":"https://api.github.com/users/LoginovAS/orgs","repos_url":"https://api.github.com/users/LoginovAS/repos","events_url":"https://api.github.com/users/LoginovAS/events{/privacy}","received_events_url":"https://api.github.com/users/LoginovAS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LoginovAS/ParserSpring","description":null,"fork":false,"url":"https://api.github.com/repos/LoginovAS/ParserSpring","forks_url":"https://api.github.com/repos/LoginovAS/ParserSpring/forks","keys_url":"https://api.github.com/repos/LoginovAS/ParserSpring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LoginovAS/ParserSpring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LoginovAS/ParserSpring/teams","hooks_url":"https://api.github.com/repos/LoginovAS/ParserSpring/hooks","issue_events_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/events{/number}","events_url":"https://api.github.com/repos/LoginovAS/ParserSpring/events","assignees_url":"https://api.github.com/repos/LoginovAS/ParserSpring/assignees{/user}","branches_url":"https://api.github.com/repos/LoginovAS/ParserSpring/branches{/branch}","tags_url":"https://api.github.com/repos/LoginovAS/ParserSpring/tags","blobs_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/refs{/sha}","trees_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LoginovAS/ParserSpring/statuses/{sha}","languages_url":"https://api.github.com/repos/LoginovAS/ParserSpring/languages","stargazers_url":"https://api.github.com/repos/LoginovAS/ParserSpring/stargazers","contributors_url":"https://api.github.com/repos/LoginovAS/ParserSpring/contributors","subscribers_url":"https://api.github.com/repos/LoginovAS/ParserSpring/subscribers","subscription_url":"https://api.github.com/repos/LoginovAS/ParserSpring/subscription","commits_url":"https://api.github.com/repos/LoginovAS/ParserSpring/commits{/sha}","git_commits_url":"https://api.github.com/repos/LoginovAS/ParserSpring/git/commits{/sha}","comments_url":"https://api.github.com/repos/LoginovAS/ParserSpring/comments{/number}","issue_comment_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/comments{/number}","contents_url":"https://api.github.com/repos/LoginovAS/ParserSpring/contents/{+path}","compare_url":"https://api.github.com/repos/LoginovAS/ParserSpring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LoginovAS/ParserSpring/merges","archive_url":"https://api.github.com/repos/LoginovAS/ParserSpring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LoginovAS/ParserSpring/downloads","issues_url":"https://api.github.com/repos/LoginovAS/ParserSpring/issues{/number}","pulls_url":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls{/number}","milestones_url":"https://api.github.com/repos/LoginovAS/ParserSpring/milestones{/number}","notifications_url":"https://api.github.com/repos/LoginovAS/ParserSpring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LoginovAS/ParserSpring/labels{/name}","releases_url":"https://api.github.com/repos/LoginovAS/ParserSpring/releases{/id}","deployments_url":"https://api.github.com/repos/LoginovAS/ParserSpring/deployments","created_at":"2016-11-01T17:36:56Z","updated_at":"2016-11-01T17:36:56Z","pushed_at":"2016-11-10T17:01:20Z","git_url":"git://github.com/LoginovAS/ParserSpring.git","ssh_url":"git@github.com:LoginovAS/ParserSpring.git","clone_url":"https://github.com/LoginovAS/ParserSpring.git","svn_url":"https://github.com/LoginovAS/ParserSpring","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2"},"html":{"href":"https://github.com/LoginovAS/ParserSpring/pull/2"},"issue":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/2"},"comments":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/LoginovAS/ParserSpring/statuses/2bb410ddf92f35706113ffab13f5156235629bd6"}}}}
{"actor":{"display_login":"adxfighter"}}