Mercurial > hg > AnnotationManagerN4J
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 85:ed51eadc82c5 | 86:e3f0613b2f2d |
|---|---|
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU General Lesser Public | 19 * You should have received a copy of the GNU General Lesser Public |
| 20 * License along with this program. If not, see | 20 * License along with this program. If not, see |
| 21 * <http://www.gnu.org/licenses/lgpl-3.0.html>. | 21 * <http://www.gnu.org/licenses/lgpl-3.0.html>. |
| 22 * #L% | 22 * #L% |
| 23 * Author: Robert Casties (casties@mpiwg-berlin.mpg.de) | 23 * Author: Robert Casties (casties@mpiwg-berlin.mpg.de), |
| 24 * Dirk Wintergruen (dwinter@mpiwg-berlin.mpg.de) | |
| 24 */ | 25 */ |
| 25 | 26 |
| 26 import java.io.File; | 27 import java.io.File; |
| 27 import java.io.FileInputStream; | 28 import java.io.FileInputStream; |
| 28 import java.io.FileNotFoundException; | 29 import java.io.FileNotFoundException; |
| 95 * LDAP server URI (for looking up full user names). | 96 * LDAP server URI (for looking up full user names). |
| 96 */ | 97 */ |
| 97 protected String ldapServerUrl; | 98 protected String ldapServerUrl; |
| 98 public static final String LDAP_SERVER_KEY = "annotationmanager.ldapserver.url"; | 99 public static final String LDAP_SERVER_KEY = "annotationmanager.ldapserver.url"; |
| 99 | 100 |
| 101 /** | |
| 102 * web frontend admin user name | |
| 103 */ | |
| 100 public static final String ADMIN_USER_KEY = "annotationmanager.admin.user"; | 104 public static final String ADMIN_USER_KEY = "annotationmanager.admin.user"; |
| 105 /** | |
| 106 * web frontend admin user password | |
| 107 */ | |
| 101 public static final String ADMIN_PASSWORD_KEY = "annotationmanager.admin.password"; | 108 public static final String ADMIN_PASSWORD_KEY = "annotationmanager.admin.password"; |
| 102 | 109 |
| 103 /** | 110 /** |
| 104 * run in authorization mode i.e. with tokens. | 111 * run in authorization mode i.e. with tokens. |
| 105 */ | 112 */ |
| 274 public String getConsumerSecret(String consumerKey) { | 281 public String getConsumerSecret(String consumerKey) { |
| 275 return consumerKeys.getProperty(consumerKey); | 282 return consumerKeys.getProperty(consumerKey); |
| 276 } | 283 } |
| 277 | 284 |
| 278 /** | 285 /** |
| 286 * Return the full name (String) of the person with the given user-id. | |
| 287 * | |
| 288 * Contacts a naming service (currently LDAP). | |
| 289 * | |
| 290 * @param userId | |
| 291 * @return full-name | |
| 292 */ | |
| 293 public String getFullNameForId(String userId) { | |
| 294 return getFullNameFromLdap(userId); | |
| 295 } | |
| 296 | |
| 297 /** | |
| 279 * Hole den vollen Benutzernamen aus dem LDAP | 298 * Hole den vollen Benutzernamen aus dem LDAP |
| 280 * | 299 * |
| 281 * @param creator | 300 * @param creator |
| 282 * @return | 301 * @return |
| 283 */ | 302 */ |
