m2u-upass-core / src / my / com / upass / pojo / UserBean.java @ 2:dcd717e1bcae
History | View | Annotate | Download (6.47 KB)
1 |
/**
|
---|---|
2 |
* Copyright (M) 2010 Penril Datability (M) Sdn Bhd All rights reserved.
|
3 |
*
|
4 |
* This software is copyrighted. Under the copyright laws, this software
|
5 |
* may not be copied, in whole or in part, without prior written consent
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is
|
7 |
* provided under the terms of a license between Penril Datability (M)
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that
|
9 |
* license.
|
10 |
*/
|
11 |
package my.com.upass.pojo; |
12 |
|
13 |
import java.io.Serializable; |
14 |
import java.util.Date; |
15 |
import java.util.HashSet; |
16 |
import java.util.Set; |
17 |
|
18 |
|
19 |
/**
|
20 |
*
|
21 |
* PROGRAMMER: Danniell
|
22 |
* CHANGE-NO:
|
23 |
* TASK-NO:
|
24 |
* DATE CREATED: Oct 8, 2011
|
25 |
* TAG AS:
|
26 |
* REASON(S):
|
27 |
* MODIFICATION:
|
28 |
*/
|
29 |
|
30 |
/**
|
31 |
* <Class description>
|
32 |
*/
|
33 |
public class UserBean implements Serializable |
34 |
{ |
35 |
private static final long serialVersionUID = 9156396112031434214L; |
36 |
|
37 |
private long userID; |
38 |
private String userAlias; |
39 |
private int userType; |
40 |
private String description; |
41 |
private Date udateCreated; |
42 |
private Date udateLastUsed; |
43 |
private int uuseCount; |
44 |
private Date udateLastActivated; |
45 |
private Date udateLastLocked; |
46 |
private int ustate; |
47 |
private Date udateLockedFrom; |
48 |
private Date udateLockedTo; |
49 |
|
50 |
private String pcipherText; |
51 |
private int pstate; |
52 |
private Date pdateCreated; |
53 |
private Date pdateFirstUsed; |
54 |
private Date pdateLastUsed; |
55 |
private int puseCount; |
56 |
private int perrorCount; |
57 |
private String phistoryList; |
58 |
private int pexpiredStatus; |
59 |
//This field is used to track password expire date. The value is the last password change date.
|
60 |
//The actual expire date must add the value from TM_AM_CONFIG.PASSWORD_EXPIRY_DAY value
|
61 |
private Date pdateExpired; |
62 |
|
63 |
TacBean tacbean; |
64 |
|
65 |
|
66 |
|
67 |
|
68 |
// private String ucustomerType;
|
69 |
private int applicationId; |
70 |
private Set<UserTokenBean> upassUserTokens = new HashSet<UserTokenBean> (); |
71 |
private UserMasterBean upassUserMaster;
|
72 |
|
73 |
/**
|
74 |
* @return the ucustomerType
|
75 |
*/
|
76 |
// public String getUcustomerType ()
|
77 |
// {
|
78 |
// return ucustomerType;
|
79 |
// }
|
80 |
//
|
81 |
// /**
|
82 |
// * @param ucustomerType the ucustomerType to set
|
83 |
// */
|
84 |
// public void setUcustomerType (String ucustomerType)
|
85 |
// {
|
86 |
// this.ucustomerType = ucustomerType;
|
87 |
// }
|
88 |
|
89 |
/**
|
90 |
* @return the upassUserTokens
|
91 |
*/
|
92 |
public Set<UserTokenBean> getUpassUserTokens () |
93 |
{ |
94 |
return upassUserTokens;
|
95 |
} |
96 |
|
97 |
/**
|
98 |
* @param upassUserTokens the upassUserTokens to set
|
99 |
*/
|
100 |
public void setUpassUserTokens (Set<UserTokenBean> upassUserTokens) |
101 |
{ |
102 |
this.upassUserTokens = upassUserTokens;
|
103 |
} |
104 |
|
105 |
/**
|
106 |
* @return the upassUserMaster
|
107 |
*/
|
108 |
public UserMasterBean getUpassUserMaster ()
|
109 |
{ |
110 |
return upassUserMaster;
|
111 |
} |
112 |
|
113 |
/**
|
114 |
* @param upassUserMaster the upassUserMaster to set
|
115 |
*/
|
116 |
public void setUpassUserMaster (UserMasterBean upassUserMaster) |
117 |
{ |
118 |
this.upassUserMaster = upassUserMaster;
|
119 |
} |
120 |
|
121 |
//merging
|
122 |
|
123 |
public TacBean getTacbean() {
|
124 |
return tacbean;
|
125 |
} |
126 |
|
127 |
public void setTacbean(TacBean tacbean) { |
128 |
this.tacbean = tacbean;
|
129 |
} |
130 |
|
131 |
public UserBean() {
|
132 |
} |
133 |
|
134 |
public long getUserID() { |
135 |
return userID;
|
136 |
} |
137 |
|
138 |
public void setUserID(long userID) { |
139 |
this.userID = userID;
|
140 |
} |
141 |
|
142 |
public String getUserAlias() { |
143 |
return userAlias;
|
144 |
} |
145 |
|
146 |
public void setUserAlias(String userAlias) { |
147 |
this.userAlias = userAlias;
|
148 |
} |
149 |
|
150 |
public int getUserType() { |
151 |
return userType;
|
152 |
} |
153 |
|
154 |
public void setUserType(int userType) { |
155 |
this.userType = userType;
|
156 |
} |
157 |
|
158 |
public String getDescription() { |
159 |
return description;
|
160 |
} |
161 |
|
162 |
public void setDescription(String description) { |
163 |
this.description = description;
|
164 |
} |
165 |
|
166 |
public Date getUdateCreated() { |
167 |
return udateCreated;
|
168 |
} |
169 |
|
170 |
public void setUdateCreated(Date udateCreated) { |
171 |
this.udateCreated = udateCreated;
|
172 |
} |
173 |
|
174 |
public Date getUdateLastUsed() { |
175 |
return udateLastUsed;
|
176 |
} |
177 |
|
178 |
public void setUdateLastUsed(Date udateLastUsed) { |
179 |
this.udateLastUsed = udateLastUsed;
|
180 |
} |
181 |
|
182 |
public int getUuseCount() { |
183 |
return uuseCount;
|
184 |
} |
185 |
|
186 |
public void setUuseCount(int uuseCount) { |
187 |
this.uuseCount = uuseCount;
|
188 |
} |
189 |
|
190 |
public Date getUdateLastActivated() { |
191 |
return udateLastActivated;
|
192 |
} |
193 |
|
194 |
public void setUdateLastActivated(Date udateLastActivated) { |
195 |
this.udateLastActivated = udateLastActivated;
|
196 |
} |
197 |
|
198 |
public Date getUdateLastLocked() { |
199 |
return udateLastLocked;
|
200 |
} |
201 |
|
202 |
public void setUdateLastLocked(Date udateLastLocked) { |
203 |
this.udateLastLocked = udateLastLocked;
|
204 |
} |
205 |
|
206 |
public int getUstate() { |
207 |
return ustate;
|
208 |
} |
209 |
|
210 |
public void setUstate(int ustate) { |
211 |
this.ustate = ustate;
|
212 |
} |
213 |
|
214 |
public Date getUdateLockedFrom() { |
215 |
return udateLockedFrom;
|
216 |
} |
217 |
|
218 |
public void setUdateLockedFrom(Date udateLockedFrom) { |
219 |
this.udateLockedFrom = udateLockedFrom;
|
220 |
} |
221 |
|
222 |
public Date getUdateLockedTo() { |
223 |
return udateLockedTo;
|
224 |
} |
225 |
|
226 |
public void setUdateLockedTo(Date udateLockedTo) { |
227 |
this.udateLockedTo = udateLockedTo;
|
228 |
} |
229 |
|
230 |
public String getPcipherText() { |
231 |
return pcipherText;
|
232 |
} |
233 |
|
234 |
public void setPcipherText(String pcipherText) { |
235 |
this.pcipherText = pcipherText;
|
236 |
} |
237 |
|
238 |
public int getPstate() { |
239 |
return pstate;
|
240 |
} |
241 |
|
242 |
public void setPstate(int pstate) { |
243 |
this.pstate = pstate;
|
244 |
} |
245 |
|
246 |
public Date getPdateCreated() { |
247 |
return pdateCreated;
|
248 |
} |
249 |
|
250 |
public void setPdateCreated(Date pdateCreated) { |
251 |
this.pdateCreated = pdateCreated;
|
252 |
} |
253 |
|
254 |
public Date getPdateFirstUsed() { |
255 |
return pdateFirstUsed;
|
256 |
} |
257 |
|
258 |
public void setPdateFirstUsed(Date pdateFirstUsed) { |
259 |
this.pdateFirstUsed = pdateFirstUsed;
|
260 |
} |
261 |
|
262 |
public Date getPdateLastUsed() { |
263 |
return pdateLastUsed;
|
264 |
} |
265 |
|
266 |
public void setPdateLastUsed(Date pdateLastUsed) { |
267 |
this.pdateLastUsed = pdateLastUsed;
|
268 |
} |
269 |
|
270 |
public int getPuseCount() { |
271 |
return puseCount;
|
272 |
} |
273 |
|
274 |
public void setPuseCount(int puseCount) { |
275 |
this.puseCount = puseCount;
|
276 |
} |
277 |
|
278 |
public int getPerrorCount() { |
279 |
return perrorCount;
|
280 |
} |
281 |
|
282 |
public void setPerrorCount(int perrorCount) { |
283 |
this.perrorCount = perrorCount;
|
284 |
} |
285 |
|
286 |
public String getPhistoryList() { |
287 |
return phistoryList;
|
288 |
} |
289 |
|
290 |
public void setPhistoryList(String phistoryList) { |
291 |
this.phistoryList = phistoryList;
|
292 |
} |
293 |
|
294 |
public int getPexpiredStatus() { |
295 |
return pexpiredStatus;
|
296 |
} |
297 |
|
298 |
public void setPexpiredStatus(int pexpiredStatus) { |
299 |
this.pexpiredStatus = pexpiredStatus;
|
300 |
} |
301 |
|
302 |
public Date getPdateExpired() { |
303 |
return pdateExpired;
|
304 |
} |
305 |
|
306 |
public void setPdateExpired(Date pdateExpired) { |
307 |
this.pdateExpired = pdateExpired;
|
308 |
} |
309 |
|
310 |
public int getApplicationId() { |
311 |
return applicationId;
|
312 |
} |
313 |
|
314 |
public void setApplicationId(int applicationId) { |
315 |
this.applicationId = applicationId;
|
316 |
} |
317 |
} |