comparison src/main/java/de/mpiwg/itgroup/annotations/Person.java @ 32:0731c4549065

UI for editing groups and persons works now. (still no authorisation!)
author casties
date Tue, 25 Sep 2012 21:59:21 +0200
parents 58357a4b86de
children 9d3885d1681e
comparison
equal deleted inserted replaced
30:05b631a084d0 32:0731c4549065
1 /** 1 /**
2 * 2 *
3 */ 3 */
4 package de.mpiwg.itgroup.annotations; 4 package de.mpiwg.itgroup.annotations;
5
6 import de.mpiwg.itgroup.annotations.restlet.BaseRestlet;
5 7
6 /** 8 /**
7 * @author casties 9 * @author casties
8 * 10 *
9 */ 11 */
52 if (id != null) { 54 if (id != null) {
53 return new Person(id); 55 return new Person(id);
54 } 56 }
55 return null; 57 return null;
56 } 58 }
59
60 /**
61 * Sets the name from the id using getFullNameFromLdap of the Application.
62 *
63 * @param application
64 * @return
65 */
66 public String updateName(BaseRestlet application) {
67 if (id != null) {
68 name = application.getFullNameFromLdap(id);
69 }
70 return name;
71 }
57 } 72 }