Server.Person Class Reference

This class represents a person in the system. A person has a username and a password for accessing the system. More...

List of all members.

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 email


Detailed Description

This class represents a person in the system. A person has a username and a password for accessing the system.

Definition at line 12 of file Person.cs.


Constructor & Destructor Documentation

Server.Person.Person ( string  username,
string  password,
string  name,
string  department,
string  email 
)

Cnstructs a new instance of Person.

Parameters:
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.
email 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:


Member Function Documentation

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.

Parameters:
pi 
Returns:

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:


Property Documentation

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]

Gets or sets the department of the user.

Definition at line 60 of file Person.cs.

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]

Gets or sets the email address of the person.

Definition at line 87 of file Person.cs.

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().


The documentation for this class was generated from the following file:
Generated on Thu Dec 21 06:24:59 2006 for SCRAML by  doxygen 1.5.1-p1