Represents a list of users. More...
Public Member Functions | |
User? | FindUser (string name) |
Retrieve the User instance for the specified user name. | |
void | AddUser (string name) |
Add the specified user name as a user. Operation ignored if user is already in the list. | |
void | RemoveUser (string name) |
Remove the specified user name as a user. Operation ignored if user is not in the list. | |
Properties | |
string[] | UserNames [get] |
The user names contained in this list (read-only). The list is always sorted. | |
Private Attributes | |
List< User > | _users = new List<User>() |
The list of users. | |
Represents a list of users.
This is a simple implementation using a simple list. It is NOT thread-safe.
Definition at line 87 of file Mediator_User_Classes.cs.
|
inline |
Add the specified user name as a user. Operation ignored if user is already in the list.
name | Name of user to add. Cannot be null or empty. |
ArgumentNullException | The 'name' parameter is null or empty. |
Definition at line 130 of file Mediator_User_Classes.cs.
References UserList._users.
Referenced by UserGroupMediator.AddUser().
|
inline |
Retrieve the User instance for the specified user name.
name | User name to search for. |
Definition at line 118 of file Mediator_User_Classes.cs.
References UserList._users.
Referenced by UserList.AddUser(), UserGroupMediator.AddUserToGroup(), UserGroupMediator.GetGroupsWithUser(), UserGroupMediator.IsUserInGroup(), UserGroupMediator.RemoveUserFromAllGroups(), and UserGroupMediator.RemoveUserFromGroup().
|
inline |
Remove the specified user name as a user. Operation ignored if user is not in the list.
name | Name of user to remove. |
Definition at line 150 of file Mediator_User_Classes.cs.
References UserList._users.
Referenced by UserGroupMediator.RemoveUser().
The list of users.
Definition at line 92 of file Mediator_User_Classes.cs.
Referenced by UserList._SearchForUser(), Group.AddUser(), UserList.AddUser(), Group.ContainsUser(), UserList.FindUser(), Group.RemoveUser(), UserList.RemoveUser(), UserList.UserNames(), and Group.Users().
|
get |
The user names contained in this list (read-only). The list is always sorted.
Definition at line 98 of file Mediator_User_Classes.cs.
Referenced by UserGroupMediator.GetAllUsers().