source: AnnotationManagerN4J/src/main/java/de/mpiwg/itgroup/annotations/Group.java @ 15:58357a4b86de

Last change on this file since 15:58357a4b86de was 15:58357a4b86de, checked in by casties, 12 years ago

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

File size: 687 bytes
Line 
1/**
2 *
3 */
4package de.mpiwg.itgroup.annotations;
5
6/**
7 * @author casties
8 *
9 */
10public class Group extends Actor {
11
12    public Group(String id) {
13        super();
14        this.id = id;
15    }
16
17    public Group(String uri, String name) {
18        super();
19        this.uri = uri;
20        this.name = name;
21    }
22
23    public Group(String id, String uri, String name) {
24        super();
25        this.id = id;
26        this.uri = uri;
27        this.name = name;
28    }
29
30
31    @Override
32    public boolean isGroup() {
33        return true;
34    }
35
36    public String getIdString() {
37        if (id == null) {
38            id = getIdFromUri(uri, true);
39        }
40        return "group:" + id;
41    }
42
43}
Note: See TracBrowser for help on using the repository browser.