1
15
16 package gate.security;
17
18 import java.util.List;
19
20 import gate.persist.PersistenceException;
21
22
23 public interface Group {
24
25 public static final int OBJECT_CHANGE_NAME = 1001;
26 public static final int OBJECT_CHANGE_ADDUSER = 1002;
27 public static final int OBJECT_CHANGE_REMOVEUSER = 1003;
28
29
30 public Long getID();
31
32
33 public String getName();
34
35
36 public List getUsers();
37
38
39 public void setName(String newName, Session s)
40 throws PersistenceException,SecurityException;
41
42
43 public void addUser(Long userID, Session s)
44 throws PersistenceException,SecurityException;
45
46
47 public void addUser(User usr, Session s)
48 throws PersistenceException,SecurityException;
49
50
51 public void removeUser(Long userID, Session s)
52 throws PersistenceException,SecurityException;
53
54
55 public void removeUser(User usr, Session s)
56 throws PersistenceException,SecurityException;
57
58 }
59