1 /*
2 * Kuali Coeus, a comprehensive research administration system for higher education.
3 *
4 * Copyright 2005-2015 Kuali, Inc.
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 package org.kuali.coeus.s2sgen.impl.budget;
20
21
22 public class KeyPersonDto extends CompensationDto {
23
24
25 private int sortId = 0;
26 private String personId = null;
27 private Integer rolodexId = null;
28 private String lastName = null;
29 private String firstName = null;
30 private String middleName = null;
31 private String role = null;
32 private String keyPersonRole = null;
33 private boolean nonMITPersonFlag;
34
35 /**
36 * Getter for property sortId.
37 *
38 * @return Value of property sortId.
39 */
40 public int getSortId() {
41 return sortId;
42 }
43
44 /**
45 * Setter for property sortId.
46 *
47 * @param sortId New value of property sortId.
48 */
49 public void setSortId(int sortId) {
50 this.sortId = sortId;
51 }
52
53 /**
54 * Getter for property personId.
55 *
56 * @return Value of property personId.
57 */
58 public java.lang.String getPersonId() {
59 return personId;
60 }
61
62 /**
63 * Setter for property personId.
64 *
65 * @param personId New value of property personId.
66 */
67 public void setPersonId(java.lang.String personId) {
68 this.personId = personId;
69 }
70
71
72 /**
73 * Getter for property lastName.
74 *
75 * @return Value of property lastName.
76 */
77 public java.lang.String getLastName() {
78 return lastName;
79 }
80
81 /**
82 * Setter for property lastName.
83 *
84 * @param lastName New value of property lastName.
85 */
86 public void setLastName(java.lang.String lastName) {
87 this.lastName = lastName;
88 }
89
90 /**
91 * Getter for property firstName.
92 *
93 * @return Value of property firstName.
94 */
95 public java.lang.String getFirstName() {
96 return firstName;
97 }
98
99 /**
100 * Setter for property firstName.
101 *
102 * @param firstName New value of property firstName.
103 */
104 public void setFirstName(java.lang.String firstName) {
105 this.firstName = firstName;
106 }
107
108 /**
109 * Getter for property middleName.
110 *
111 * @return Value of property middleName.
112 */
113 public java.lang.String getMiddleName() {
114 return middleName;
115 }
116
117 /**
118 * Setter for property name.
119 *
120 * @param middleName New value of property middleName.
121 */
122 public void setMiddleName(java.lang.String middleName) {
123 this.middleName = middleName;
124 }
125
126
127 /**
128 * Getter for property role.
129 *
130 * @return Value of property role.
131 */
132 public java.lang.String getRole() {
133 return role;
134 }
135
136 /**
137 * Setter for property role.
138 *
139 * @param role New value of property role.
140 */
141 public void setRole(java.lang.String role) {
142 this.role = role;
143 }
144
145 /**
146 * Getter for property role.
147 *
148 * @return Value of property role.
149 */
150 public java.lang.String getKeyPersonRole() {
151 return keyPersonRole;
152 }
153
154 /**
155 * Setter for property role.
156 *
157 * @param keyPersonRole New value of property keyPersonRole.
158 */
159 public void setKeyPersonRole(java.lang.String keyPersonRole) {
160 this.keyPersonRole = keyPersonRole;
161 }
162 /**
163 * Setter for nonMITPersonFlag.
164 *
165 * @return nonMITPersonFlag
166 */
167 public boolean isNonMITPersonFlag() {
168 return nonMITPersonFlag;
169 }
170
171 /**
172 * Getter for nonMITPersonFlag
173 *
174 * @param nonMITPersonFlag
175 */
176 public void setNonMITPersonFlag(boolean nonMITPersonFlag) {
177 this.nonMITPersonFlag = nonMITPersonFlag;
178 }
179
180 /**
181 * Gets the rolodexId attribute.
182 * @return Returns the rolodexId.
183 */
184 public Integer getRolodexId() {
185 return rolodexId;
186 }
187
188 /**
189 * Sets the rolodexId attribute value.
190 * @param rolodexId The rolodexId to set.
191 */
192 public void setRolodexId(Integer rolodexId) {
193 this.rolodexId = rolodexId;
194 }
195
196 @Override
197 public int hashCode() {
198 final int prime = 31;
199 int result = 1;
200 result = prime * result + (nonMITPersonFlag ? 1231 : 1237);
201 result = prime * result + ((personId == null) ? 0 : personId.hashCode());
202 result = prime * result + ((rolodexId == null) ? 0 : rolodexId.hashCode());
203 return result;
204 }
205
206 @Override
207 public boolean equals(Object obj) {
208 if (this == obj)
209 return true;
210 if (obj == null)
211 return false;
212 if (getClass() != obj.getClass())
213 return false;
214 KeyPersonDto other = (KeyPersonDto) obj;
215 if (nonMITPersonFlag != other.nonMITPersonFlag)
216 return false;
217 if (personId == null) {
218 if (other.personId != null)
219 return false;
220 }
221 else if (!personId.equals(other.personId))
222 return false;
223 if (rolodexId == null) {
224 if (other.rolodexId != null)
225 return false;
226 }
227 else if (!rolodexId.equals(other.rolodexId))
228 return false;
229 return true;
230 }
231 }