public class ResourceLink.GroupSet
extends java.lang.Object
A group set is a collection of related groups, normally a user would only be a member of one of the groups. Users are not members of the group set itself.
Constructor and Description |
---|
ResourceLink.GroupSet(java.lang.String title)
Construct a group set with the specified title.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroup(java.lang.String id)
Add a group ID to the group set.
|
java.util.List<java.lang.String> |
getGroups()
Returns a list of the group IDs for the group set.
|
int |
getNumLearners()
Returns the number of learners belonging to the groups within the group set.
|
int |
getNumMembers()
Returns the number of users belonging to the groups within the group set.
|
int |
getNumStaff()
Returns the number of staff users belonging to the groups within the group set.
|
java.lang.String |
getTitle()
Returns the title of the group set.
|
void |
incNumLearners()
Increments the number of users belonging to the groups within the group set.
|
void |
incNumMembers()
Increments the number of users belonging to the groups within the group set.
|
void |
incNumStaff()
Increments the number of staff users belonging to the groups within the group set.
|
public ResourceLink.GroupSet(java.lang.String title)
public java.lang.String getTitle()
public java.util.List<java.lang.String> getGroups()
public void addGroup(java.lang.String id)
id
- Group IDpublic int getNumMembers()
public void incNumMembers()
public int getNumStaff()
public void incNumStaff()
public int getNumLearners()
public void incNumLearners()