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 |
|
---|
6 | package gov.hhs.fha.nhinc.auditrepository;
|
---|
7 | import org.apache.commons.logging.Log;
|
---|
8 | import org.apache.commons.logging.LogFactory;
|
---|
9 |
|
---|
10 | import gov.hhs.fha.nhinc.common.nhinccommonadapter.FindCommunitiesAndAuditEventsRequestType;
|
---|
11 | import gov.hhs.fha.nhinc.common.nhinccommonadapter.FindCommunitiesAndAuditEventsResponseType;
|
---|
12 | import gov.hhs.fha.nhinc.common.nhinccommon.AcknowledgementType;
|
---|
13 | import gov.hhs.fha.nhinc.common.auditlog.LogEventRequestType;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | *
|
---|
17 | * @author mflynn02
|
---|
18 | */
|
---|
19 | public 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.