View Javadoc
1   /*
2    * Copyright 2016 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *       http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.openehealth.ipf.commons.ihe.fhir.iti81;
17  
18  import ca.uhn.fhir.context.FhirContext;
19  import org.openehealth.ipf.commons.ihe.fhir.audit.FhirQueryAuditDataset;
20  import org.openehealth.ipf.commons.ihe.fhir.FhirTransactionConfiguration;
21  import org.openehealth.ipf.commons.ihe.fhir.FhirTransactionValidator;
22  
23  /**
24   * Standard Configuration for Iti81Component
25   *
26   * @author Christian Ohr
27   * @since 3.1
28   */
29  public class Iti81TransactionConfiguration extends FhirTransactionConfiguration<FhirQueryAuditDataset> {
30  
31      public Iti81TransactionConfiguration() {
32          super("atna-iti81",
33                  "Retrieve ATNA Audit Event",
34                  true,
35                  new Iti81AuditStrategy(false),
36                  new Iti81AuditStrategy(true),
37                  FhirContext.forDstu3(),
38                  new Iti81ResourceProvider(),       // Consumer side. accept audit searches
39                  new Iti81ClientRequestFactory(),
40                  FhirTransactionValidator.NO_VALIDATION);
41      }
42  }