{"action":"created","comment":{"url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments/47360867","id":47360867,"diff_hunk":"@@ -161,4 +166,150 @@ public List queryAuditRepositoryOnCriteria(String eUserId, String ePatientId, Da\n         }\n         return queryList;\n     }\n+\n+    /**\n+     * This method does a query to database to get the Audit Log Messages based different options\n+     *\n+     * @param messageId\n+     * @param relatesTo\n+     * @param outcome\n+     * @param startDate\n+     * @param userId\n+     * @param eventTypeList\n+     * @param remoteHcidList\n+     * @param endDate\n+     * @return List\n+     */\n+    public List queryAuditViewer(String messageId, String relatesTo, Integer outcome, List<String> eventTypeList,","path":"Product/Production/Services/AuditRepositoryCore/src/main/java/gov/hhs/fha/nhinc/auditrepository/hibernate/AuditRepositoryDAO.java","position":37,"original_position":37,"commit_id":"5a36c14234c00de4fd322a0a95de4876c0ef1174","original_commit_id":"5a36c14234c00de4fd322a0a95de4876c0ef1174","user":{"login":"jsmith2","id":1517816,"avatar_url":"https://avatars.githubusercontent.com/u/1517816?v=3","gravatar_id":"","url":"https://api.github.com/users/jsmith2","html_url":"https://github.com/jsmith2","followers_url":"https://api.github.com/users/jsmith2/followers","following_url":"https://api.github.com/users/jsmith2/following{/other_user}","gists_url":"https://api.github.com/users/jsmith2/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmith2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmith2/subscriptions","organizations_url":"https://api.github.com/users/jsmith2/orgs","repos_url":"https://api.github.com/users/jsmith2/repos","events_url":"https://api.github.com/users/jsmith2/events{/privacy}","received_events_url":"https://api.github.com/users/jsmith2/received_events","type":"User","site_admin":false},"body":"We might want to remove the term \"viewer\" from here.  should just queryAuditRecords or something like that.  This class should have no idea of the usage, meaning the DAO call could be used by another service, not just a view.","created_at":"2015-12-11T14:39:53Z","updated_at":"2015-12-11T14:39:53Z","html_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1194#discussion_r47360867","pull_request_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194","_links":{"self":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments/47360867"},"html":{"href":"https://github.com/CONNECT-Solution/CONNECT/pull/1194#discussion_r47360867"},"pull_request":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194"}}},"pull_request":{"url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194","id":53318180,"html_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1194","diff_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1194.diff","patch_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1194.patch","issue_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1194","number":1194,"state":"open","locked":false,"title":"FHAC-689 Implement Audit Query DAO calls for Audit Viewer","user":{"login":"vdmehta06","id":13540181,"avatar_url":"https://avatars.githubusercontent.com/u/13540181?v=3","gravatar_id":"","url":"https://api.github.com/users/vdmehta06","html_url":"https://github.com/vdmehta06","followers_url":"https://api.github.com/users/vdmehta06/followers","following_url":"https://api.github.com/users/vdmehta06/following{/other_user}","gists_url":"https://api.github.com/users/vdmehta06/gists{/gist_id}","starred_url":"https://api.github.com/users/vdmehta06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdmehta06/subscriptions","organizations_url":"https://api.github.com/users/vdmehta06/orgs","repos_url":"https://api.github.com/users/vdmehta06/repos","events_url":"https://api.github.com/users/vdmehta06/events{/privacy}","received_events_url":"https://api.github.com/users/vdmehta06/received_events","type":"User","site_admin":false},"body":"We can search audit entries using 3 below options:\r\n1. By MessageId or RelatesTo\r\n2. By EventOutcome or EventType or UserId or Remote HCID or Event Begin Date or Event End date\r\n3. By AuditId\r\nI cannot hook up this DAO query changes to Secured,Unsecured and Java Implementation classes as development is still not ready and it is addressed in upcoming other ticket and it is not addressed as a part of this PR\r\nAll the above 3 available search criteria are tested with dummy data and I have also created Junit methods but those are dummy values passed in test methods need to be updated based on database entries","created_at":"2015-12-10T21:17:05Z","updated_at":"2015-12-11T14:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a302656ec462ccf5201882d15efffea1ae61697f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194/commits","review_comments_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194/comments","review_comment_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1194/comments","statuses_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/statuses/5a36c14234c00de4fd322a0a95de4876c0ef1174","head":{"label":"vdmehta06:FHAC-689","ref":"FHAC-689","sha":"5a36c14234c00de4fd322a0a95de4876c0ef1174","user":{"login":"vdmehta06","id":13540181,"avatar_url":"https://avatars.githubusercontent.com/u/13540181?v=3","gravatar_id":"","url":"https://api.github.com/users/vdmehta06","html_url":"https://github.com/vdmehta06","followers_url":"https://api.github.com/users/vdmehta06/followers","following_url":"https://api.github.com/users/vdmehta06/following{/other_user}","gists_url":"https://api.github.com/users/vdmehta06/gists{/gist_id}","starred_url":"https://api.github.com/users/vdmehta06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdmehta06/subscriptions","organizations_url":"https://api.github.com/users/vdmehta06/orgs","repos_url":"https://api.github.com/users/vdmehta06/repos","events_url":"https://api.github.com/users/vdmehta06/events{/privacy}","received_events_url":"https://api.github.com/users/vdmehta06/received_events","type":"User","site_admin":false},"repo":{"id":39899654,"name":"CONNECT","full_name":"vdmehta06/CONNECT","owner":{"login":"vdmehta06","id":13540181,"avatar_url":"https://avatars.githubusercontent.com/u/13540181?v=3","gravatar_id":"","url":"https://api.github.com/users/vdmehta06","html_url":"https://github.com/vdmehta06","followers_url":"https://api.github.com/users/vdmehta06/followers","following_url":"https://api.github.com/users/vdmehta06/following{/other_user}","gists_url":"https://api.github.com/users/vdmehta06/gists{/gist_id}","starred_url":"https://api.github.com/users/vdmehta06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdmehta06/subscriptions","organizations_url":"https://api.github.com/users/vdmehta06/orgs","repos_url":"https://api.github.com/users/vdmehta06/repos","events_url":"https://api.github.com/users/vdmehta06/events{/privacy}","received_events_url":"https://api.github.com/users/vdmehta06/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vdmehta06/CONNECT","description":"CONNECT Codebase (2.x, 3.x, 4.x)","fork":true,"url":"https://api.github.com/repos/vdmehta06/CONNECT","forks_url":"https://api.github.com/repos/vdmehta06/CONNECT/forks","keys_url":"https://api.github.com/repos/vdmehta06/CONNECT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vdmehta06/CONNECT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vdmehta06/CONNECT/teams","hooks_url":"https://api.github.com/repos/vdmehta06/CONNECT/hooks","issue_events_url":"https://api.github.com/repos/vdmehta06/CONNECT/issues/events{/number}","events_url":"https://api.github.com/repos/vdmehta06/CONNECT/events","assignees_url":"https://api.github.com/repos/vdmehta06/CONNECT/assignees{/user}","branches_url":"https://api.github.com/repos/vdmehta06/CONNECT/branches{/branch}","tags_url":"https://api.github.com/repos/vdmehta06/CONNECT/tags","blobs_url":"https://api.github.com/repos/vdmehta06/CONNECT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vdmehta06/CONNECT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vdmehta06/CONNECT/git/refs{/sha}","trees_url":"https://api.github.com/repos/vdmehta06/CONNECT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vdmehta06/CONNECT/statuses/{sha}","languages_url":"https://api.github.com/repos/vdmehta06/CONNECT/languages","stargazers_url":"https://api.github.com/repos/vdmehta06/CONNECT/stargazers","contributors_url":"https://api.github.com/repos/vdmehta06/CONNECT/contributors","subscribers_url":"https://api.github.com/repos/vdmehta06/CONNECT/subscribers","subscription_url":"https://api.github.com/repos/vdmehta06/CONNECT/subscription","commits_url":"https://api.github.com/repos/vdmehta06/CONNECT/commits{/sha}","git_commits_url":"https://api.github.com/repos/vdmehta06/CONNECT/git/commits{/sha}","comments_url":"https://api.github.com/repos/vdmehta06/CONNECT/comments{/number}","issue_comment_url":"https://api.github.com/repos/vdmehta06/CONNECT/issues/comments{/number}","contents_url":"https://api.github.com/repos/vdmehta06/CONNECT/contents/{+path}","compare_url":"https://api.github.com/repos/vdmehta06/CONNECT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vdmehta06/CONNECT/merges","archive_url":"https://api.github.com/repos/vdmehta06/CONNECT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vdmehta06/CONNECT/downloads","issues_url":"https://api.github.com/repos/vdmehta06/CONNECT/issues{/number}","pulls_url":"https://api.github.com/repos/vdmehta06/CONNECT/pulls{/number}","milestones_url":"https://api.github.com/repos/vdmehta06/CONNECT/milestones{/number}","notifications_url":"https://api.github.com/repos/vdmehta06/CONNECT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vdmehta06/CONNECT/labels{/name}","releases_url":"https://api.github.com/repos/vdmehta06/CONNECT/releases{/id}","created_at":"2015-07-29T15:00:05Z","updated_at":"2015-07-29T15:00:22Z","pushed_at":"2015-12-10T21:11:27Z","git_url":"git://github.com/vdmehta06/CONNECT.git","ssh_url":"git@github.com:vdmehta06/CONNECT.git","clone_url":"https://github.com/vdmehta06/CONNECT.git","svn_url":"https://github.com/vdmehta06/CONNECT","homepage":"http://www.connectopensource.org","size":1927943,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"CONNECT_integration"}},"base":{"label":"CONNECT-Solution:CONNECT_integration","ref":"CONNECT_integration","sha":"16643c6ae6ecabebfdb5e5accf83a1f3166ec516","user":{"login":"CONNECT-Solution","id":1440978,"avatar_url":"https://avatars.githubusercontent.com/u/1440978?v=3","gravatar_id":"","url":"https://api.github.com/users/CONNECT-Solution","html_url":"https://github.com/CONNECT-Solution","followers_url":"https://api.github.com/users/CONNECT-Solution/followers","following_url":"https://api.github.com/users/CONNECT-Solution/following{/other_user}","gists_url":"https://api.github.com/users/CONNECT-Solution/gists{/gist_id}","starred_url":"https://api.github.com/users/CONNECT-Solution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CONNECT-Solution/subscriptions","organizations_url":"https://api.github.com/users/CONNECT-Solution/orgs","repos_url":"https://api.github.com/users/CONNECT-Solution/repos","events_url":"https://api.github.com/users/CONNECT-Solution/events{/privacy}","received_events_url":"https://api.github.com/users/CONNECT-Solution/received_events","type":"Organization","site_admin":false},"repo":{"id":3452904,"name":"CONNECT","full_name":"CONNECT-Solution/CONNECT","owner":{"login":"CONNECT-Solution","id":1440978,"avatar_url":"https://avatars.githubusercontent.com/u/1440978?v=3","gravatar_id":"","url":"https://api.github.com/users/CONNECT-Solution","html_url":"https://github.com/CONNECT-Solution","followers_url":"https://api.github.com/users/CONNECT-Solution/followers","following_url":"https://api.github.com/users/CONNECT-Solution/following{/other_user}","gists_url":"https://api.github.com/users/CONNECT-Solution/gists{/gist_id}","starred_url":"https://api.github.com/users/CONNECT-Solution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CONNECT-Solution/subscriptions","organizations_url":"https://api.github.com/users/CONNECT-Solution/orgs","repos_url":"https://api.github.com/users/CONNECT-Solution/repos","events_url":"https://api.github.com/users/CONNECT-Solution/events{/privacy}","received_events_url":"https://api.github.com/users/CONNECT-Solution/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CONNECT-Solution/CONNECT","description":"CONNECT Codebase (2.x, 3.x, 4.x)","fork":false,"url":"https://api.github.com/repos/CONNECT-Solution/CONNECT","forks_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/forks","keys_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/teams","hooks_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/hooks","issue_events_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/events{/number}","events_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/events","assignees_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/assignees{/user}","branches_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/branches{/branch}","tags_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/tags","blobs_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/refs{/sha}","trees_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/statuses/{sha}","languages_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/languages","stargazers_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/stargazers","contributors_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/contributors","subscribers_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/subscribers","subscription_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/subscription","commits_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/commits{/sha}","git_commits_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/commits{/sha}","comments_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/comments{/number}","issue_comment_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/comments{/number}","contents_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/contents/{+path}","compare_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/merges","archive_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/downloads","issues_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues{/number}","pulls_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls{/number}","milestones_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/milestones{/number}","notifications_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/labels{/name}","releases_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/releases{/id}","created_at":"2012-02-15T19:44:26Z","updated_at":"2015-11-22T12:58:14Z","pushed_at":"2015-12-11T14:09:08Z","git_url":"git://github.com/CONNECT-Solution/CONNECT.git","ssh_url":"git@github.com:CONNECT-Solution/CONNECT.git","clone_url":"https://github.com/CONNECT-Solution/CONNECT.git","svn_url":"https://github.com/CONNECT-Solution/CONNECT","homepage":"http://www.connectopensource.org","size":1932517,"stargazers_count":42,"watchers_count":42,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":80,"mirror_url":null,"open_issues_count":5,"forks":80,"open_issues":5,"watchers":42,"default_branch":"CONNECT_integration"}},"_links":{"self":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194"},"html":{"href":"https://github.com/CONNECT-Solution/CONNECT/pull/1194"},"issue":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1194"},"comments":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1194/comments"},"review_comments":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194/comments"},"review_comment":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1194/commits"},"statuses":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/statuses/5a36c14234c00de4fd322a0a95de4876c0ef1174"}}}}