Public Member Functions | |
| Person (string username, string password, string name, string department, string email) | |
| Cnstructs a new instance of Person. | |
Static Public Member Functions | |
| static Person | FromInfo (PersonInfo pi) |
| Returns an instance of Person with the information contained in the PersonInfo struct passed as an argument. | |
Properties | |
| bool | Moderator [get, set] |
| Gets or sets a value indicating if the person if a moderator. This is only accessed server-side. | |
| string | Name [get, set] |
| Gets or sets the name of the person. | |
| string | Department [get, set] |
| Gets or sets the department of the user. | |
| string | UserName [get, set] |
| Returns the username of the person. | |
| string | Password [get, set] |
| Gets or sets the password. This is a hashed string. | |
| string | Email [get, set] |
| Gets or sets the email address of the person. | |
| PersonInfo | Info [get] |
| Returns a PersonInfo struct containing the current information of this instance of Person. | |
Private Attributes | |
| string | department |
| string | name |
| string | username |
| string | password |
| bool | moderator = false |
| string | |
Definition at line 12 of file Person.cs.
| Server.Person.Person | ( | string | username, | |
| string | password, | |||
| string | name, | |||
| string | department, | |||
| string | ||||
| ) |
Cnstructs a new instance of Person.
| username | The persons unique username. | |
| password | The users password. A hashed string. | |
| name | The real name of the person. | |
| department | The department of the person. | |
| The persons email address. |
Definition at line 29 of file Person.cs.
Referenced by Server.Person.FromInfo().
Here is the caller graph for this function:

| static Person Server.Person.FromInfo | ( | PersonInfo | pi | ) | [static] |
Returns an instance of Person with the information contained in the PersonInfo struct passed as an argument.
| pi |
Definition at line 108 of file Person.cs.
References Shared.PersonInfo.department, Shared.PersonInfo.email, Shared.PersonInfo.moderator, Server.Person.moderator, Shared.PersonInfo.name, Shared.PersonInfo.password, Server.Person.Person(), and Shared.PersonInfo.username.
Here is the call graph for this function:

bool Server.Person.Moderator [get, set] |
Gets or sets a value indicating if the person if a moderator. This is only accessed server-side.
Definition at line 42 of file Person.cs.
Referenced by Server.ServerConsole.AddModerator(), and Server.ServerConsole.RemoveModerator().
string Server.Person.Name [get, set] |
Gets or sets the name of the person.
Definition at line 51 of file Person.cs.
Referenced by Server.ServerConsole.AddModerator(), and Server.ServerConsole.RemoveModerator().
string Server.Person.Department [get, set] |
string Server.Person.UserName [get, set] |
Returns the username of the person.
Definition at line 69 of file Person.cs.
Referenced by Server.Project.AddPerson(), Server.Catalogue.RegisterUser(), Server.Data.XmlData.SaveProjects(), Server.Data.BinaryData.SerializeComment(), and Server.Test.PersistentDataTest.TestComments().
string Server.Person.Password [get, set] |
Gets or sets the password. This is a hashed string.
Definition at line 78 of file Person.cs.
Referenced by Server.Net.RMIAccessHandler.Login().
string Server.Person.Email [get, set] |
PersonInfo Server.Person.Info [get] |
Returns a PersonInfo struct containing the current information of this instance of Person.
Definition at line 96 of file Person.cs.
Referenced by Server.Test.PersistentDataTest.TestDatabase().
1.5.1-p1