Mercurial > hg > AnnotationManagerN4J
diff src/main/java/de/mpiwg/itgroup/annotations/Person.java @ 10:90911b2da322
more work on permissions...
author | casties |
---|---|
date | Thu, 12 Jul 2012 17:01:32 +0200 |
parents | |
children | 5928c5d9aae8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/mpiwg/itgroup/annotations/Person.java Thu Jul 12 17:01:32 2012 +0200 @@ -0,0 +1,37 @@ +/** + * + */ +package de.mpiwg.itgroup.annotations; + +/** + * @author casties + * + */ +public class Person extends Actor { + + public Person(String uri, String name) { + super(); + this.uri = uri; + this.name = name; + } + + public Person() { + } + + public Person(String id) { + this.id = id; + } + + @Override + public boolean isGroup() { + return false; + } + + public String getIdString() { + if (id == null) { + id = getIdFromUri(uri, false); + } + return id; + } + +}