| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Group
A user group.
| Field Summary | 
|---|
| Fields inherited from interface de.espirit.firstspirit.access.Principal | 
|---|
| GROUP, USER | 
| Method Summary | |
|---|---|
|  boolean | addUser(User user)Adds the given userto this group. | 
|  void | addUsers(User[] users)Adds the given usersto this group. | 
|  String | getEmail()Gets email address of the group. | 
|  String | getName()Get name of the group | 
|  long | getProjectID() | 
|  User[] | getUsers()Get all users in this group | 
|  boolean | isAdmin()Is this an admin group. | 
|  boolean | isEveryone()Is this the everyone group | 
|  boolean | isExternal() | 
|  boolean | isMember(User user) | 
|  boolean | removeUser(User user)Remove user from group | 
|  void | removeUsers(User[] users)Remove the given usersfrom this group. | 
|  void | setAdmin(boolean admin)Sets or clears the admin flag of this group. | 
|  void | setEmail(String email)Sets the email address of the group | 
|  void | setName(String name)Sets group's name. | 
| Methods inherited from interface de.espirit.firstspirit.access.Principal | 
|---|
| getId, getID, getType | 
| Methods inherited from interface java.lang.Comparable | 
|---|
| compareTo | 
| Method Detail | 
|---|
String getName()
getName in interface Principalvoid setName(String name)
name - new name.
IllegalArgumentException - if a group with this name already exists.User[] getUsers()
boolean addUser(User user)
                throws IllegalArgumentException
user to this group.
user - user to add.
true if the user was added, false if the user is already member if this group.
IllegalArgumentException - if the user has no access rights to the project.
void addUsers(User[] users)
              throws IllegalArgumentException
users to this group.
users - users to add.
IllegalArgumentException - if at least one user has no access rights to the project.boolean removeUser(User user)
user - the user to remove
void removeUsers(User[] users)
users from this group.
users - to removeboolean isAdmin()
true if this is an administrator group.void setAdmin(boolean admin)
admin - admin flag.boolean isEveryone()
boolean isExternal()
boolean isMember(User user)
long getProjectID()
@Nullable String getEmail()
void setEmail(@Nullable
              String email)
email - the new eMail address| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||