View Javadoc
1   /*
2    * Copyright 2005-2014 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 1.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.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 implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.coeus.s2sgen.impl.budget;
17  
18  
19  public class KeyPersonDto extends CompensationDto {
20  
21  
22      private int sortId = 0;
23      private String personId = null;
24      private Integer rolodexId = null;
25      private String lastName = null;
26      private String firstName = null;
27      private String middleName = null;
28      private String role = null;
29      private String keyPersonRole = null;
30      private boolean nonMITPersonFlag;
31  
32      /**
33       * Getter for property sortId.
34       * 
35       * @return Value of property sortId.
36       */
37      public int getSortId() {
38          return sortId;
39      }
40  
41      /**
42       * Setter for property sortId.
43       * 
44       * @param sortId New value of property sortId.
45       */
46      public void setSortId(int sortId) {
47          this.sortId = sortId;
48      }
49  
50      /**
51       * Getter for property personId.
52       * 
53       * @return Value of property personId.
54       */
55      public java.lang.String getPersonId() {
56          return personId;
57      }
58  
59      /**
60       * Setter for property personId.
61       * 
62       * @param personId New value of property personId.
63       */
64      public void setPersonId(java.lang.String personId) {
65          this.personId = personId;
66      }
67  
68  
69      /**
70       * Getter for property lastName.
71       * 
72       * @return Value of property lastName.
73       */
74      public java.lang.String getLastName() {
75          return lastName;
76      }
77  
78      /**
79       * Setter for property lastName.
80       * 
81       * @param lastName New value of property lastName.
82       */
83      public void setLastName(java.lang.String lastName) {
84          this.lastName = lastName;
85      }
86  
87      /**
88       * Getter for property firstName.
89       * 
90       * @return Value of property firstName.
91       */
92      public java.lang.String getFirstName() {
93          return firstName;
94      }
95  
96      /**
97       * Setter for property firstName.
98       * 
99       * @param firstName New value of property firstName.
100      */
101     public void setFirstName(java.lang.String firstName) {
102         this.firstName = firstName;
103     }
104 
105     /**
106      * Getter for property middleName.
107      * 
108      * @return Value of property middleName.
109      */
110     public java.lang.String getMiddleName() {
111         return middleName;
112     }
113 
114     /**
115      * Setter for property name.
116      * 
117      * @param middleName New value of property middleName.
118      */
119     public void setMiddleName(java.lang.String middleName) {
120         this.middleName = middleName;
121     }
122 
123 
124     /**
125      * Getter for property role.
126      * 
127      * @return Value of property role.
128      */
129     public java.lang.String getRole() {
130         return role;
131     }
132 
133     /**
134      * Setter for property role.
135      * 
136      * @param role New value of property role.
137      */
138     public void setRole(java.lang.String role) {
139         this.role = role;
140     }
141 
142     /**
143      * Getter for property role.
144      * 
145      * @return Value of property role.
146      */
147     public java.lang.String getKeyPersonRole() {
148         return keyPersonRole;
149     }
150 
151     /**
152      * Setter for property role.
153      * 
154      * @param keyPersonRole New value of property keyPersonRole.
155      */
156     public void setKeyPersonRole(java.lang.String keyPersonRole) {
157         this.keyPersonRole = keyPersonRole;
158     }
159     /**
160      * Setter for nonMITPersonFlag.
161      * 
162      * @return nonMITPersonFlag
163      */
164     public boolean isNonMITPersonFlag() {
165         return nonMITPersonFlag;
166     }
167 
168     /**
169      * Getter for nonMITPersonFlag
170      * 
171      * @param nonMITPersonFlag
172      */
173     public void setNonMITPersonFlag(boolean nonMITPersonFlag) {
174         this.nonMITPersonFlag = nonMITPersonFlag;
175     }
176 
177     /**
178      * Gets the rolodexId attribute. 
179      * @return Returns the rolodexId.
180      */
181     public Integer getRolodexId() {
182         return rolodexId;
183     }
184 
185     /**
186      * Sets the rolodexId attribute value.
187      * @param rolodexId The rolodexId to set.
188      */
189     public void setRolodexId(Integer rolodexId) {
190         this.rolodexId = rolodexId;
191     }
192 
193     @Override
194     public int hashCode() {
195         final int prime = 31;
196         int result = 1;
197         result = prime * result + (nonMITPersonFlag ? 1231 : 1237);
198         result = prime * result + ((personId == null) ? 0 : personId.hashCode());
199         result = prime * result + ((rolodexId == null) ? 0 : rolodexId.hashCode());
200         return result;
201     }
202 
203     @Override
204     public boolean equals(Object obj) {
205         if (this == obj)
206             return true;
207         if (obj == null)
208             return false;
209         if (getClass() != obj.getClass())
210             return false;
211         KeyPersonDto other = (KeyPersonDto) obj;
212         if (nonMITPersonFlag != other.nonMITPersonFlag)
213             return false;
214         if (personId == null) {
215             if (other.personId != null)
216                 return false;
217         }
218         else if (!personId.equals(other.personId))
219             return false;
220         if (rolodexId == null) {
221             if (other.rolodexId != null)
222                 return false;
223         }
224         else if (!rolodexId.equals(other.rolodexId))
225             return false;
226         return true;
227     }
228 }