Ignore:
Timestamp:
Sep 5, 2012, 4:05:54 PM (12 years ago)
Author:
casties
Branch:
default
Message:

new AnnotationStore? restlet for HTML-UI.
reorganisation of classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java

    r16 r18  
    3838import de.mpiwg.itgroup.annotations.Actor;
    3939import de.mpiwg.itgroup.annotations.Annotation;
     40import de.mpiwg.itgroup.annotations.NS;
    4041import de.mpiwg.itgroup.annotations.Annotation.FragmentTypes;
    4142import de.mpiwg.itgroup.annotations.Group;
    4243import de.mpiwg.itgroup.annotations.Person;
    4344import de.mpiwg.itgroup.annotations.neo4j.AnnotationStore;
    44 import de.mpiwg.itgroup.annotations.old.NS;
    4545
    4646/**
     
    6565                    .get("org.restlet.ext.servlet.ServletContext");
    6666            logger.debug("Getting AnnotationStore from Context");
    67             store = (AnnotationStore) sc.getAttribute(RestServer.ANNSTORE_KEY);
     67            store = (AnnotationStore) sc.getAttribute(BaseRestlet.ANNSTORE_KEY);
    6868        }
    6969        return store;
     
    149149        String consumerKey = token.getParamAsPrimitive("consumerKey").getAsString();
    150150        // get stored consumer secret for key
    151         RestServer restServer = (RestServer) getApplication();
     151        BaseRestlet restServer = (BaseRestlet) getApplication();
    152152        String consumerSecret = restServer.getConsumerSecret(consumerKey);
    153153        logger.debug("requested consumer key=" + consumerKey + " secret=" + consumerSecret);
     
    208208                String userName = creator.getName();
    209209                if (userName == null) {
    210                     RestServer restServer = (RestServer) getApplication();
     210                    BaseRestlet restServer = (BaseRestlet) getApplication();
    211211                    userName = restServer.getFullNameFromLdap(userId);
    212212                }
     
    500500        // try to get full name
    501501        if (creator.getName() == null && username != null) {
    502             RestServer restServer = (RestServer) getApplication();
     502            BaseRestlet restServer = (BaseRestlet) getApplication();
    503503            String fullName = restServer.getFullNameFromLdap(username);
    504504            creator.setName(fullName);
Note: See TracChangeset for help on using the changeset viewer.