diff src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java @ 86:e3f0613b2f2d

renamed getFullname to make it configurable. fixed Restlet at 2.2.3.
author casties
date Mon, 02 Feb 2015 11:32:53 +0100
parents 4724fc7b4733
children 247cbbb385de
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java	Mon Jan 26 18:51:28 2015 +0100
+++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java	Mon Feb 02 11:32:53 2015 +0100
@@ -20,7 +20,8 @@
  * License along with this program.  If not, see
  * <http://www.gnu.org/licenses/lgpl-3.0.html>.
  * #L%
- * Author: Robert Casties (casties@mpiwg-berlin.mpg.de)
+ * Author: Robert Casties (casties@mpiwg-berlin.mpg.de),
+ *         Dirk Wintergruen (dwinter@mpiwg-berlin.mpg.de)
  */
 
 import java.io.File;
@@ -97,7 +98,13 @@
     protected String ldapServerUrl;
     public static final String LDAP_SERVER_KEY = "annotationmanager.ldapserver.url";
 
+    /**
+     * web frontend admin user name
+     */
     public static final String ADMIN_USER_KEY = "annotationmanager.admin.user";
+    /**
+     * web frontend admin user password
+     */
     public static final String ADMIN_PASSWORD_KEY = "annotationmanager.admin.password";
 
     /**
@@ -276,6 +283,18 @@
     }
 
     /**
+     * Return the full name (String) of the person with the given user-id.
+     * 
+     * Contacts a naming service (currently LDAP).
+     * 
+     * @param userId
+     * @return full-name
+     */
+    public String getFullNameForId(String userId) {
+    	return getFullNameFromLdap(userId);
+    }	
+    
+    /**
      * Hole den vollen Benutzernamen aus dem LDAP
      * 
      * @param creator