View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.core.person.dto;
17  
18  import java.io.Serializable;
19  import java.util.Date;
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  
26  import org.kuali.student.common.dto.Idable;
27  import org.kuali.student.common.dto.MetaInfo;
28  
29  /**
30   *Detailed information about a person's visa.
31   */ 
32  @XmlAccessorType(XmlAccessType.FIELD)
33  public class PersonVisaInfo implements Serializable, Idable {
34  
35      private static final long serialVersionUID = 1L;
36  
37      @XmlElement
38      private String personId;
39  
40      @XmlElement
41      private String visaTypeKey;
42  
43      @XmlElement
44      private Date effectiveDate;
45  
46      @XmlElement
47      private Date expirationDate;
48  
49      @XmlElement
50      private String visaEntry;
51  
52      @XmlElement
53      private String visaId;
54  
55      @XmlElement
56      private MetaInfo metaInfo;
57  
58      @XmlAttribute
59      private String id;
60  
61      /**
62       * Unique identifier for a person record. This is optional, due to the identifier being set at the time of creation of the person. Once the person has been created, this should be seen as required.
63       */
64      public String getPersonId() {
65          return personId;
66      }
67  
68      public void setPersonId(String personId) {
69          this.personId = personId;
70      }
71  
72      /**
73       * key Code for the visa type (e.g.landed immigrant, on student visa, diplomat)
74       */
75      public String getVisaTypeKey() {
76          return visaTypeKey;
77      }
78  
79      public void setVisaTypeKey(String visaTypeKey) {
80          this.visaTypeKey = visaTypeKey;
81      }
82  
83      /**
84       * Date/Time this became effective
85       */
86      public Date getEffectiveDate() {
87          return effectiveDate;
88      }
89  
90      public void setEffectiveDate(Date effectiveDate) {
91          this.effectiveDate = effectiveDate;
92      }
93  
94      /**
95       * Date/Time this became no longer effective
96       */
97      public Date getExpirationDate() {
98          return expirationDate;
99      }
100 
101     public void setExpirationDate(Date expirationDate) {
102         this.expirationDate = expirationDate;
103     }
104 
105     /**
106      * port of entry
107      */
108     public String getVisaEntry() {
109         return visaEntry;
110     }
111 
112     public void setVisaEntry(String visaEntry) {
113         this.visaEntry = visaEntry;
114     }
115 
116     /**
117      * visa identification number
118      */
119     public String getVisaId() {
120         return visaId;
121     }
122 
123     public void setVisaId(String visaId) {
124         this.visaId = visaId;
125     }
126 
127     /**
128      * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
129      */
130     public MetaInfo getMetaInfo() {
131         return metaInfo;
132     }
133 
134     public void setMetaInfo(MetaInfo metaInfo) {
135         this.metaInfo = metaInfo;
136     }
137 
138     /**
139      * Unique identifier for the citizenship record. This is set by the service to be able to determine changes and alterations to the structure as well as provides a handle for searches. This structure is not accessible through unique operations, and it is strongly recommended that no external references to this particular identifier be maintained. Once this identifier is set by the service, it should be seen as required and readonly.
140      */
141     public String getId() {
142         return id;
143     }
144 
145     public void setId(String id) {
146         this.id = id;
147     }
148 }