Changeset 86:e3f0613b2f2d in AnnotationManagerN4J


Ignore:
Timestamp:
Feb 2, 2015, 10:32:53 AM (9 years ago)
Author:
casties
Branch:
default
Message:

renamed getFullname to make it configurable.
fixed Restlet at 2.2.3.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pom.xml

    r83 r86  
    1010    <!-- <restlet-version>2.0.15</restlet-version> -->
    1111    <!-- <restlet-version>2.1.7</restlet-version> -->
    12     <restlet-version>2.2-SNAPSHOT</restlet-version>
     12    <restlet-version>2.2.3</restlet-version>
    1313  </properties>
    1414  <repositories>
  • src/main/java/de/mpiwg/itgroup/annotations/Person.java

    r70 r86  
    8888    public String updateName(BaseRestlet application) {
    8989        if (id != null) {
    90             name = application.getFullNameFromLdap(id);
     90            name = application.getFullNameForId(id);
    9191        }
    9292        return name;
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java

    r85 r86  
    164164     *
    165165     * @param entity
    166      * @return
     166     * @return user-id
    167167     */
    168168    public String checkAuthToken(Representation entity) {
     
    249249                    if (userName == null) {
    250250                        BaseRestlet restServer = (BaseRestlet) getApplication();
    251                         userName = restServer.getFullNameFromLdap(userId);
     251                        userName = restServer.getFullNameForId(userId);
    252252                    }
    253253                    userObject.put("name", userName);
     
    625625        if (creator.getName() == null && username != null) {
    626626            BaseRestlet restServer = (BaseRestlet) getApplication();
    627             String fullName = restServer.getFullNameFromLdap(username);
     627            String fullName = restServer.getFullNameForId(username);
    628628            creator.setName(fullName);
    629629        }
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java

    r80 r86  
    2121 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
    2222 * #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)
    2425 */
    2526
     
    9899    public static final String LDAP_SERVER_KEY = "annotationmanager.ldapserver.url";
    99100
     101    /**
     102     * web frontend admin user name
     103     */
    100104    public static final String ADMIN_USER_KEY = "annotationmanager.admin.user";
     105    /**
     106     * web frontend admin user password
     107     */
    101108    public static final String ADMIN_PASSWORD_KEY = "annotationmanager.admin.password";
    102109
     
    277284
    278285    /**
     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    /**
    279298     * Hole den vollen Benutzernamen aus dem LDAP
    280299     *
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/PersonsResource.java

    r75 r86  
    126126        String name = form.getFirstValue("name");
    127127        if (name == null || name.isEmpty()) {
    128             name = ((BaseRestlet) getApplication()).getFullNameFromLdap(id);
     128            name = ((BaseRestlet) getApplication()).getFullNameForId(id);
    129129        }
    130130        String uri = form.getFirstValue("uri");
Note: See TracChangeset for help on using the changeset viewer.