source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/AuditRepositoryEJB/src/java/gov/hhs/fha/nhinc/auditrepository/AuditRepositoryHelper.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 1.4 KB
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5
6package gov.hhs.fha.nhinc.auditrepository;
7import org.apache.commons.logging.Log;
8import org.apache.commons.logging.LogFactory;
9
10import gov.hhs.fha.nhinc.common.nhinccommonadapter.FindCommunitiesAndAuditEventsRequestType;
11import gov.hhs.fha.nhinc.common.nhinccommonadapter.FindCommunitiesAndAuditEventsResponseType;
12import gov.hhs.fha.nhinc.common.nhinccommon.AcknowledgementType;
13import gov.hhs.fha.nhinc.common.auditlog.LogEventRequestType;
14
15/**
16 *
17 * @author mflynn02
18 */
19public class AuditRepositoryHelper {
20 private static Log log = LogFactory.getLog(AuditRepositoryHelper.class);
21
22 public static FindCommunitiesAndAuditEventsResponseType queryAuditEvents(FindCommunitiesAndAuditEventsRequestType queryAuditEventsRequest) {
23
24 FindCommunitiesAndAuditEventsResponseType response = new FindCommunitiesAndAuditEventsResponseType();
25
26 // Create an instance of the DAO and query the Audit Respository
27 response = AuditRepositoryImpl.findAudit(queryAuditEventsRequest.getFindAuditEvents());
28
29 return response;
30 }
31
32 public static AcknowledgementType logEvent(LogEventRequestType logEventRequest)
33 {
34 AcknowledgementType acknowledgement = new AcknowledgementType();
35
36 acknowledgement = AuditRepositoryImpl.logAudit(logEventRequest);
37
38 return acknowledgement;
39 }
40}
Note: See TracBrowser for help on using the repository browser.