View Javadoc
1   /*
2    * Copyright 2009 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.xds.core.requests.query;
17  
18  import lombok.EqualsAndHashCode;
19  import lombok.Getter;
20  import lombok.Setter;
21  import lombok.ToString;
22  import org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus;
23  
24  import javax.xml.bind.annotation.*;
25  import java.util.List;
26  
27  
28  /**
29   * Represents a stored query for GetFoldersForDocument.
30   * @author Jens Riemschneider
31   */
32  @XmlAccessorType(XmlAccessType.FIELD)
33  @XmlType(name = "GetFoldersForDocumentQuery", propOrder = {"associationStatuses", "metadataLevel"})
34  @XmlRootElement(name = "getFoldersForDocumentQuery")
35  @EqualsAndHashCode(callSuper = true, doNotUseGetters = true)
36  @ToString(callSuper = true, doNotUseGetters = true)
37  public class GetFoldersForDocumentQuery extends GetFromDocumentQuery {
38      private static final long serialVersionUID = 4576256132617368775L;
39  
40      @XmlElement(name = "associationStatus")
41      @Getter @Setter private List<AvailabilityStatus> associationStatuses;
42      @Getter @Setter private Integer metadataLevel;
43  
44      /**
45       * Constructs the query.
46       */
47      public GetFoldersForDocumentQuery() {
48          super(QueryType.GET_FOLDERS_FOR_DOCUMENT);
49      }    
50  
51      @Override
52      public void accept(Visitor visitor) {
53          visitor.visit(this);
54      }
55  }