Ignore:
Timestamp:
Jul 12, 2012, 3:01:32 PM (12 years ago)
Author:
casties
Branch:
default
Message:

more work on permissions...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java

    r9 r10  
    2121import de.mpiwg.itgroup.annotations.Annotation;
    2222import de.mpiwg.itgroup.annotations.Annotation.FragmentTypes;
     23import de.mpiwg.itgroup.annotations.Person;
    2324
    2425/**
     
    103104                        String uri = (String) creatorNode.getProperty("uri", null);
    104105                        String name = (String) creatorNode.getProperty("name", null);
    105             Actor creator = new Actor(false, uri, name);
     106            Actor creator = new Person(uri, name);
    106107            annot.setCreator(creator);
    107108                        // just the first one
     
    164165
    165166                        /*
    166                          * The name of the creator of this annotation.
    167                          */
    168                         String creatorName = annot.getCreatorName();
    169 
    170                         /*
    171                          * The URI of the creator of this annotation.
    172                          */
    173                         String creatorUri = annot.getCreatorUri();
    174                         if (creatorUri != null) {
    175                                 Node creator = getOrCreatePersonNode(creatorUri, creatorName);
    176                                 getOrCreateRelation(creator, RelationTypes.CREATED, annotNode);
     167                         * The creator of this annotation.
     168                         */
     169                        Actor creator = annot.getCreator();
     170                        if (creator != null) {
     171                                Node creatorNode = getOrCreatePersonNode(creator);
     172                                getOrCreateRelation(creatorNode, RelationTypes.CREATED, annotNode);
    177173                        }
    178174
     
    342338        }
    343339
    344         protected Node getOrCreatePersonNode(String uri, String name) {
     340        protected Node getOrCreatePersonNode(Actor actor) {
     341            /*
    345342                // Person is identified by URI
    346343                Index<Node> idx = getNodeIndex(NodeTypes.PERSON);
     
    364361                }
    365362                return person;
     363                */
     364            return null;
    366365        }
    367366
Note: See TracChangeset for help on using the changeset viewer.