View Javadoc
1   /*
2    * Copyright 2018 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  
17  package org.openehealth.ipf.commons.ihe.fhir.audit;
18  
19  import ca.uhn.fhir.rest.api.RestOperationTypeEnum;
20  import lombok.Getter;
21  import lombok.Setter;
22  import org.hl7.fhir.instance.model.api.IIdType;
23  
24  /**
25   * Audit dataset that supports generic FHIR transactions (general REST API) for which there
26   * is no explicit ATNA record format defined. This may include all operation types.
27   *
28   * @author Christian Ohr
29   * @since 3.5
30   */
31  public class GenericFhirAuditDataset extends FhirAuditDataset {
32  
33      @Getter
34      @Setter
35      private String affectedResourceType;
36  
37      @Getter
38      @Setter
39      private RestOperationTypeEnum operation;
40  
41      @Getter
42      @Setter
43      private IIdType resourceId;
44  
45      @Getter
46      @Setter
47      private String securityLabel;
48  
49      @Getter
50      @Setter
51      private String queryString;
52  
53      public GenericFhirAuditDataset(boolean serverSide) {
54          super(serverSide);
55      }
56  }