Ignore:
Timestamp:
Aug 28, 2012, 6:23:12 PM (12 years ago)
Author:
casties
Branch:
default
Message:

ASSIGNED - # 249: Annotations shared in groups
https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/249

File:
1 edited

Legend:

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

    r12 r15  
    2424    }
    2525
     26    public Person(String id, String uri, String name) {
     27        super();
     28        this.id = id;
     29        this.uri = uri;
     30        this.name = name;
     31    }
     32
    2633    @Override
    2734    public boolean isGroup() {
     
    3643    }
    3744
     45    /**
     46     * Returns a Person with this id or null.
     47     *
     48     * @param id
     49     * @return
     50     */
     51    public static Person createPersonWithId(String id) {
     52        if (id != null) {
     53            return new Person(id);
     54        }
     55        return null;
     56    }
    3857}
Note: See TracChangeset for help on using the changeset viewer.