View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation 
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with the
6    * License. You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.php
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
13   * implied. See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  
17  package org.kuali.student.lum.lu.dto;
18  
19  import org.kuali.student.core.search.dto.SearchParam;
20  
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlAttribute;
24  import javax.xml.bind.annotation.XmlElement;
25  import java.io.Serializable;
26  import java.util.ArrayList;
27  import java.util.List;
28  
29  
30  /**
31   * Specifies a search for CLU identifiers.
32   *
33   * @Author Kamal
34   * @Since Mon Jan 11 15:21:50 PST 2010
35   */
36  
37  @XmlAccessorType(XmlAccessType.FIELD)
38  public class MembershipQueryInfo implements Serializable {
39  
40      private static final long serialVersionUID = 1L;
41  
42      @XmlAttribute
43      private String id;
44  
45      @XmlElement
46      private String searchTypeKey;
47  
48      @XmlElement
49      private List<SearchParam> queryParamValueList;
50  
51  
52      /**
53       * Identifier for a search type.
54       */
55  
56      public String getSearchTypeKey() {
57          return searchTypeKey;
58      }
59  
60      public void setSearchTypeKey(String searchTypeKey) {
61          this.searchTypeKey = searchTypeKey;
62      }
63  
64  
65      /**
66       * List of query parameter values. Not required if the search
67       * doesn't extend beyond the included object.
68       */
69  
70      public List<SearchParam> getQueryParamValueList() {
71          if (queryParamValueList == null) {
72              queryParamValueList = new ArrayList<SearchParam>(0);
73          }
74  
75          return queryParamValueList;
76      }
77  
78      public void setQueryParamValueList(List<SearchParam> queryParamValueList) {
79          this.queryParamValueList = queryParamValueList;
80      }
81  
82      public String getId() {
83          return id;
84      }
85  
86      public void setId(String id) {
87          this.id = id;
88      }
89  }