Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/Actor.java @ 16:794077e6288c
CLOSED - # 252: Tags for Annotations
https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/252
author | casties |
---|---|
date | Tue, 04 Sep 2012 20:02:59 +0200 |
parents | 58357a4b86de |
children | aafa3884b2c4 |
comparison
equal
deleted
inserted
replaced
15:58357a4b86de | 16:794077e6288c |
---|---|
29 * @param store AnnotationStore to check group membership | 29 * @param store AnnotationStore to check group membership |
30 * @return | 30 * @return |
31 */ | 31 */ |
32 public boolean isEquivalentWith(Person person, AnnotationStore store) { | 32 public boolean isEquivalentWith(Person person, AnnotationStore store) { |
33 if (person == null) return false; | 33 if (person == null) return false; |
34 if (person.equals(getIdString())) { | 34 if (person.equals(this)) return true; |
35 return true; | 35 if (person.getIdString().equals(this.getIdString())) return true; |
36 } | |
37 if (isGroup() && store != null) { | 36 if (isGroup() && store != null) { |
38 // check if person in group | 37 // check if person in group |
39 return store.isPersonInGroup(person, (Group) this); | 38 return store.isPersonInGroup(person, (Group) this); |
40 } | 39 } |
41 return false; | 40 return false; |