Mercurial > hg > AnnotationManagerN4J
diff 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 |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/Person.java Tue Sep 25 16:08:11 2012 +0200 +++ b/src/main/java/de/mpiwg/itgroup/annotations/Person.java Tue Sep 25 21:59:21 2012 +0200 @@ -3,6 +3,8 @@ */ package de.mpiwg.itgroup.annotations; +import de.mpiwg.itgroup.annotations.restlet.BaseRestlet; + /** * @author casties * @@ -54,4 +56,17 @@ } return null; } + + /** + * Sets the name from the id using getFullNameFromLdap of the Application. + * + * @param application + * @return + */ + public String updateName(BaseRestlet application) { + if (id != null) { + name = application.getFullNameFromLdap(id); + } + return name; + } }