Revision 5d0ffbbc src/gr/ebs/gss/client/rest/resource/UserResource.java
b/src/gr/ebs/gss/client/rest/resource/UserResource.java | ||
---|---|---|
59 | 59 |
private String announcement; |
60 | 60 |
|
61 | 61 |
private Date lastLogin; |
62 |
|
|
63 |
private Date currentLogin; |
|
62 | 64 |
|
63 | 65 |
/** |
64 | 66 |
* Retrieve the name. |
... | ... | |
305 | 307 |
return lastLogin; |
306 | 308 |
} |
307 | 309 |
|
310 |
/** |
|
311 |
* Retrieve the currentLogin. |
|
312 |
* |
|
313 |
* @return the currentLogin |
|
314 |
*/ |
|
315 |
public Date getCurrentLogin() { |
|
316 |
return currentLogin; |
|
317 |
} |
|
318 |
|
|
308 | 319 |
@Override |
309 | 320 |
public void createFromJSON(String text) { |
310 | 321 |
JSONObject json = (JSONObject) JSONParser.parse(text); |
... | ... | |
320 | 331 |
announcement = unmarshallString(json, "announcement"); |
321 | 332 |
if (json.get("lastLogin") != null) |
322 | 333 |
lastLogin = new Date(new Long(json.get("lastLogin").toString())); |
334 |
if (json.get("currentLogin") != null) |
|
335 |
currentLogin = new Date(new Long(json.get("currentLogin").toString())); |
|
323 | 336 |
if (json.get("creationDate") != null) |
324 | 337 |
creationDate = new Date(new Long(json.get("creationDate").toString())); |
325 | 338 |
if (json.get("modificationDate") != null) |
Also available in: Unified diff