Represents a list of Groups. More...
Public Member Functions | |
Group? | FindGroup (string name) |
Retrieve the Group instance for the specified group name. | |
void | AddGroup (string name) |
Add a group to the list using the given group name. Operation ignored if the group is already in the list. | |
void | RemoveGroup (string name) |
Remove the specified group from the list. Operation ignored if the group is not in the list. | |
Properties | |
string[] | GroupNames [get] |
The names of all groups contained in this list (read-only). The list is always sorted. | |
Private Attributes | |
List< Group > | _groups = new List<Group>() |
The list of groups. | |
Represents a list of Groups.
This is a simple implementation using a simple list. It is NOT thread-safe.
Definition at line 146 of file Mediator_Group_Classes.cs.
|
inline |
Add a group to the list using the given group name. Operation ignored if the group is already in the list.
name | Name of the group to add. Cannot be null or empty. |
ArgumentNullException | The group name cannot be null or empty. |
Definition at line 190 of file Mediator_Group_Classes.cs.
References GroupList._groups.
Referenced by UserGroupMediator.AddGroup().
|
inline |
Retrieve the Group instance for the specified group name.
name | Group name to search for. |
Definition at line 178 of file Mediator_Group_Classes.cs.
References GroupList._groups.
Referenced by GroupList.AddGroup(), UserGroupMediator.AddUserToGroup(), UserGroupMediator.GetGroupsWithUser(), UserGroupMediator.GetUsersInGroup(), UserGroupMediator.IsUserInGroup(), UserGroupMediator.RemoveUserFromAllGroups(), and UserGroupMediator.RemoveUserFromGroup().
|
inline |
Remove the specified group from the list. Operation ignored if the group is not in the list.
name | Name of the group to remove. |
Definition at line 210 of file Mediator_Group_Classes.cs.
References GroupList._groups.
Referenced by UserGroupMediator.RemoveGroup().
The list of groups.
Definition at line 151 of file Mediator_Group_Classes.cs.
Referenced by GroupList._SearchForGroup(), GroupList.AddGroup(), GroupList.FindGroup(), GroupList.GroupNames(), and GroupList.RemoveGroup().
|
get |
The names of all groups contained in this list (read-only). The list is always sorted.
Definition at line 158 of file Mediator_Group_Classes.cs.
Referenced by UserGroupMediator.GetAllGroups(), UserGroupMediator.GetGroupsWithUser(), and UserGroupMediator.RemoveUserFromAllGroups().