Inheritance diagram for Server.Project:


Public Member Functions | |
| Project (int id, DateTime start, DateTime endDate, string subject, string title, string department, string synopsis, bool submitted) | |
| Construct a new Project object. | |
| Role | GetPerson (string username) |
| A method for accessing a specific person in a project. | |
| void | AddPerson (Person person, RoleType role) |
| Add a new person to the project. | |
Static Public Member Functions | |
| static Project | FromInfo (ProjectInfo info) |
| Returns an instance of Project containing the information in the ProjetInfo struct passed as an argument. | |
Properties | |
| bool | IsSubmitted [get, set] |
| Set or get the boolean value indicating whether or not the project has been submitted. | |
| List< Reference > | References [get] |
| Return a list of references attached to the project. | |
| List< Role > | Roles [get] |
| Return a list of roles attached to the project. | |
| string | Synopsis [get, set] |
| Get or set the a string with the synopsis of the project. | |
| string | Department [get, set] |
| Get or set the department of the project. | |
| string | Title [get, set] |
| Get or set the title of the project. | |
| string | Subject [get, set] |
| Get or set the subject of the project. | |
| DateTime | EndDate [get, set] |
| Get or set the enddate of the project. A Date. | |
| DateTime | StartDate [get, set] |
| Get or Set the startdate of the project. A Date. | |
| ProjectInfo | Info [get] |
| Returns a new ProjectInfo struct containing the current project information. | |
Private Attributes | |
| DateTime | startDate |
| DateTime | endDate |
| string | subject |
| string | title |
| string | department |
| string | synopsis |
| List< Role > | roles |
| List< Reference > | references |
| bool | submitted |
Definition at line 12 of file Project.cs.
| Server.Project.Project | ( | int | id, | |
| DateTime | start, | |||
| DateTime | endDate, | |||
| string | subject, | |||
| string | title, | |||
| string | department, | |||
| string | synopsis, | |||
| bool | submitted | |||
| ) |
Construct a new Project object.
| id | An unique ID. This integer value is inherited from the abstract class UniquelyIdentifiable. | |
| start | >The startdate of the project. A Date. | |
| endDate | >The Date the project was submitted. | |
| subject | The subject of the project. A string. | |
| title | The title of the project. A string. | |
| department | The department of which the project is related. A string. | |
| synopsis | The synopsis of the project. A string. | |
| submitted | Whether or not the project already was submitted |
Definition at line 36 of file Project.cs.
References Server.Project.references, and Server.Project.roles.
Referenced by Server.Project.FromInfo().
Here is the caller graph for this function:

| Role Server.Project.GetPerson | ( | string | username | ) |
A method for accessing a specific person in a project.
| username | A username of a person in the project. |
Definition at line 134 of file Project.cs.
References Server.Project.roles.
Referenced by Server.Project.AddPerson(), Server.Net.RMIAccessHandler.AssignUser(), Server.Net.RMIAccessHandler.DeleteProject(), Server.Test.PersistentDataTest.TestDatabase(), Server.Net.RMIAccessHandler.UnassignUser(), and Server.Net.RMIAccessHandler.UpdateProject().
Here is the caller graph for this function:

Add a new person to the project.
| person | A Person object which holds information about a person | |
| role | The role the added person will have in the project. |
Definition at line 151 of file Project.cs.
References Server.Project.GetPerson(), Server.Project.roles, Server.Role.Type, and Server.Person.UserName.
Referenced by Server.Catalogue.CreateProject(), Server.Data.XmlData.LoadReferences(), and Server.Data.XmlData.LoadRoles().
Here is the call graph for this function:

Here is the caller graph for this function:

| static Project Server.Project.FromInfo | ( | ProjectInfo | info | ) | [static] |
Returns an instance of Project containing the information in the ProjetInfo struct passed as an argument.
| info |
Definition at line 176 of file Project.cs.
References Shared.ProjectInfo.department, Shared.ProjectInfo.endDate, Shared.ProjectInfo.id, Server.Project.Project(), Shared.ProjectInfo.startDate, Shared.ProjectInfo.subject, Shared.ProjectInfo.submitted, Shared.ProjectInfo.synopsis, and Shared.ProjectInfo.title.
Here is the call graph for this function:

bool Server.Project.IsSubmitted [get, set] |
Set or get the boolean value indicating whether or not the project has been submitted.
Definition at line 54 of file Project.cs.
Referenced by Server.Data.XmlData.LoadProjects().
List<Reference> Server.Project.References [get] |
Return a list of references attached to the project.
Definition at line 63 of file Project.cs.
Referenced by Server.Test.PersistentDataTest.TestDatabase().
List<Role> Server.Project.Roles [get] |
Return a list of roles attached to the project.
Definition at line 71 of file Project.cs.
Referenced by Server.Net.RMIAccessHandler.UnassignUser().
string Server.Project.Synopsis [get, set] |
Get or set the a string with the synopsis of the project.
Definition at line 79 of file Project.cs.
Referenced by Server.Data.XmlData.LoadProjects().
string Server.Project.Department [get, set] |
Get or set the department of the project.
Definition at line 88 of file Project.cs.
Referenced by Server.Data.XmlData.LoadProjects().
string Server.Project.Title [get, set] |
Get or set the title of the project.
Definition at line 97 of file Project.cs.
Referenced by Server.Data.XmlData.LoadProjects().
string Server.Project.Subject [get, set] |
Get or set the subject of the project.
Definition at line 106 of file Project.cs.
Referenced by Server.Data.XmlData.LoadProjects().
DateTime Server.Project.EndDate [get, set] |
Get or set the enddate of the project. A Date.
Definition at line 115 of file Project.cs.
Referenced by Server.Data.XmlData.LoadProjects().
DateTime Server.Project.StartDate [get, set] |
Get or Set the startdate of the project. A Date.
Definition at line 124 of file Project.cs.
Referenced by Server.Data.XmlData.LoadProjects().
ProjectInfo Server.Project.Info [get] |
Returns a new ProjectInfo struct containing the current project information.
Definition at line 164 of file Project.cs.
Referenced by Server.Test.PersistentDataTest.TestDatabase().
1.5.1-p1