Collaboration diagram for Server.Catalogue:

Public Member Functions | |
| Catalogue (IPersistentData database) | |
| Constructs a new Catalogue with the specified instance of PersistentData layer. | |
| void | SaveData () |
| Save current data in memory into the persistent data. | |
| Project | GetProject (int id) |
| Gets a specific project. | |
| ProjectInfo | GetProjectInfo (int id) |
| Get a specific ProjectInfo struct. | |
| Messages | DeleteProject (int id) |
| Delete a project. | |
| Messages | CreateProject (ProjectInfo pi, string creator, out int id) |
| Create a new project instance. | |
| Messages | UpdateProject (ProjectInfo info) |
| Updates an existing project. | |
| ProjectInfo[] | ListProjects () |
| Gets all projects. | |
| ProjectInfo[] | GetUsersProjects (string username) |
| Gets a projects a user has a role in. | |
| Messages | CreateLiterature (LiteratureInfo info, out int id) |
| Create a literature instance with the specified parameters. | |
| LiteratureInfo[] | ListLiterature () |
| Gets all literature. | |
| Messages | DeleteLiterature (int id) |
| Delete a specific instance of literature. | |
| LiteratureInfo | GetLiteratureInfo (int id) |
| Get the information of a specific instance of literature. | |
| Messages | UpdateLiterature (LiteratureInfo info) |
| Updates a instance of the literature class. | |
| Messages | CreateComment (CommentInfo ci, out int id) |
| Create a new comment and save it. | |
| CommentInfo[] | GetComments (int literatureID) |
| Gets all comments for a specific instance of Literature. | |
| CommentInfo[] | GetComments (int literatureID, int projectID) |
| Gets all comments for a specific reference. | |
| ReviewInfo | GetReviewInfo (int project, int literature) |
| Get a information about a specific Review. | |
| ReviewInfo[] | ListReviews (int project) |
| Lists all Reviews in a project. | |
| Messages | CreateReview (ReviewInfo ri) |
| Creates a Review. | |
| Messages | UpdateReview (ReviewInfo ri) |
| Change content of a Review. | |
| Messages | CreateReference (ReferenceInfo ri) |
| Create a new reference between a literature and a project instance. | |
| Messages | UpdateReference (ReferenceInfo ri) |
| Update an existing reference. | |
| Messages | DeleteReference (int project, int literature) |
| Deletes a reference, review or suggestion. | |
| ReferenceInfo | GetReferenceInfo (int project, int literature) |
| Gets a ReferenceInfo struct describing a Reference. | |
| ReferenceInfo[] | ListReferences (int project) |
| Gets a list of all references in a project. | |
| Messages | CreateSuggestion (SuggestionInfo si) |
| Create a new Suggestion. | |
| Messages | UpdateSuggestion (SuggestionInfo si) |
| Updates a Suggestions content using a SuggestionInfo struct. | |
| SuggestionInfo | GetSuggestionInfo (int project, int literature) |
| Gets information about a specific Suggestion. | |
| SuggestionInfo[] | ListSuggestions (int project) |
| Lists all suggestion in a specific project. | |
| List< SearchResult > | Search (string query, ResultType searchTypes) |
| Search through database using a text query. | |
| ISearchable[] | ListItems (ResultType type) |
| Lists all Items of the requested type. Listable types are Project, Person and Literature. (See ResultType). | |
| ISearchable[] | ListItems (ResultType type, string creator) |
| Lists all Items of the requested type. Listable types are Project, Person and Literature. (See ResultType). | |
| List< SearchResult > | SearchByTag (string tag) |
| Returns all items which contains a specific tag. | |
| List< SearchResult > | ShowRelated (int id) |
| TagInfo[] | GetTags (string tag, int id, string username) |
| A search function for tags. | |
| Messages | AddTag (string tag, int id, string username) |
| Add a new tag to a specific item. | |
| Messages | RemoveTag (string tag, int id, string username) |
| Remove a specific tag from an item. | |
| Messages | RegisterUser (string user, string password, string name, string department, string email) |
| Create a new user in the system. | |
| Person | GetUser (string user) |
| Get a specific user in the system. | |
| PersonInfo | GetPersonInfo (string username) |
| Get a specific info of a specific user. | |
| Messages | UpdatePerson (PersonInfo pi) |
| Updates an existing instance of Person. | |
| RoleInfo[] | GetRoles (int id) |
| Get all roles in a specific project. | |
| Messages | AssignUser (string username, int project, RoleType role) |
| Assign a user to a project. | |
| Messages | UnassignUser (string username, int project) |
| Remove a user from a project. | |
| Role | GetRole (int project, string username) |
| Get a specific persons role in a specific project. | |
| StatisticsInfo | GetStatistics () |
| Gets some amount information about the catalogue. Number of people, projects, unique tags, tag hits and literature. | |
Private Member Functions | |
| void | GetAllComments (List< Comment > root, List< CommentInfo > output, int parent, int project) |
| Reference | GetReference (int project, int literature) |
| Get a specific reference. | |
| float | TermFrequency (string input, string query) |
| Counts all occurences of a specific word in a string. (case-insensitive). | |
| float | WordCount (string input) |
| Counts amount of words in a string. | |
| float | TermFreq (string title, string text, string query) |
| Calculates tf–idf (term frequency–inverse document frequency) http://en.wikipedia.org/wiki/TFIDF Is weighted in two categories, when words are found in the title of an item, and when its found in the text. | |
| int | CalcUniqueTags () |
| Gets amount of unique tag names in the tags table. | |
Private Attributes | |
| IPersistentData | database |
| DataContainer | data |
| int | UniqueTagCount = -1 |
Classes | |
| class | SearchResultComparer |
| class | TagComparer |
Definition at line 15 of file Catalogue.cs.
| Server.Catalogue.Catalogue | ( | IPersistentData | database | ) |
Constructs a new Catalogue with the specified instance of PersistentData layer.
| database | The instance of the PersistentData class which will be used as storage. |
Definition at line 27 of file Catalogue.cs.
References Server.Catalogue.data, Server.Catalogue.database, and Server.Data.IPersistentData.LoadData().
Here is the call graph for this function:

| void Server.Catalogue.SaveData | ( | ) |
Save current data in memory into the persistent data.
Definition at line 36 of file Catalogue.cs.
References Server.Catalogue.data, Server.Catalogue.database, and Server.Data.IPersistentData.SaveData().
Referenced by Server.Startup.Main().
Here is the call graph for this function:

Here is the caller graph for this function:

| Project Server.Catalogue.GetProject | ( | int | id | ) |
Gets a specific project.
| id | A unique project ID |
Definition at line 50 of file Catalogue.cs.
References Server.Catalogue.data, and Server.Data.DataContainer.ProjectTable.
| ProjectInfo Server.Catalogue.GetProjectInfo | ( | int | id | ) |
Get a specific ProjectInfo struct.
| id | An unique project ID |
Definition at line 63 of file Catalogue.cs.
References Server.Catalogue.data, and Server.Data.DataContainer.ProjectTable.
| Messages Server.Catalogue.DeleteProject | ( | int | id | ) |
Delete a project.
| id | The ID of the project to be deleted. |
Definition at line 76 of file Catalogue.cs.
References Server.Catalogue.data, Server.Catalogue.database, Server.Catalogue.DeleteReference(), Server.Data.DataContainer.ProjectTable, Server.Data.IPersistentData.SaveData(), and Server.Data.DataContainer.Tags.
Here is the call graph for this function:

| Messages Server.Catalogue.CreateProject | ( | ProjectInfo | pi, | |
| string | creator, | |||
| out int | id | |||
| ) |
Create a new project instance.
| pi | Information used to create the project | |
| creator | The person who created the project. | |
| id | The unique ID of the project. Generated as an out value by the static class UniquelyIdentifiable. |
Definition at line 115 of file Catalogue.cs.
References Server.Project.AddPerson(), Server.Catalogue.data, Server.Catalogue.database, Shared.ProjectInfo.department, Shared.ProjectInfo.endDate, Server.Catalogue.GetUser(), Server.UniquelyIdentifiable.ID, Server.Data.DataContainer.ProjectTable, Server.Data.IPersistentData.SaveData(), Shared.ProjectInfo.startDate, Shared.ProjectInfo.subject, Shared.ProjectInfo.submitted, Shared.ProjectInfo.synopsis, and Shared.ProjectInfo.title.
Here is the call graph for this function:

| Messages Server.Catalogue.UpdateProject | ( | ProjectInfo | info | ) |
Updates an existing project.
| info | A ProjectInfo struct containing the new information. |
Definition at line 137 of file Catalogue.cs.
References Server.Catalogue.data, Shared.ProjectInfo.department, Shared.ProjectInfo.endDate, Shared.ProjectInfo.id, Server.Data.DataContainer.ProjectTable, Shared.ProjectInfo.startDate, Shared.ProjectInfo.subject, Shared.ProjectInfo.submitted, Shared.ProjectInfo.synopsis, and Shared.ProjectInfo.title.
| ProjectInfo [] Server.Catalogue.ListProjects | ( | ) |
Gets all projects.
Definition at line 156 of file Catalogue.cs.
References Server.Catalogue.data, and Server.Data.DataContainer.ProjectTable.
| ProjectInfo [] Server.Catalogue.GetUsersProjects | ( | string | username | ) |
Gets a projects a user has a role in.
| username | The username of the user. A string. |
Definition at line 172 of file Catalogue.cs.
References Server.Catalogue.data, and Server.Data.DataContainer.ProjectTable.
| Messages Server.Catalogue.CreateLiterature | ( | LiteratureInfo | info, | |
| out int | id | |||
| ) |
Create a literature instance with the specified parameters.
| info | Data used to create the literature | |
| id | The unique ID of the literature. Generated as an out value by the static class UniquelyIdentifiable. |
Definition at line 200 of file Catalogue.cs.
References Shared.LiteratureInfo.author, Shared.LiteratureInfo.creator, Server.Catalogue.data, Server.Catalogue.database, Shared.LiteratureInfo.date, Shared.LiteratureInfo.isbn, Server.Data.DataContainer.LiteratureTable, Server.Data.DataContainer.PersonTable, Server.Data.IPersistentData.SaveData(), Shared.LiteratureInfo.source, Shared.LiteratureInfo.summary, Shared.LiteratureInfo.title, and Shared.LiteratureInfo.type.
Here is the call graph for this function:

| LiteratureInfo [] Server.Catalogue.ListLiterature | ( | ) |
Gets all literature.
Definition at line 218 of file Catalogue.cs.
References Server.Catalogue.data, and Server.Data.DataContainer.LiteratureTable.
| Messages Server.Catalogue.DeleteLiterature | ( | int | id | ) |
Delete a specific instance of literature.
| id | The unique ID of the literature. |
Definition at line 234 of file Catalogue.cs.
References Server.Catalogue.data, Server.Catalogue.database, Server.Data.DataContainer.LiteratureTable, Server.Data.IPersistentData.SaveData(), and Server.Data.DataContainer.Tags.
Here is the call graph for this function:

| LiteratureInfo Server.Catalogue.GetLiteratureInfo | ( | int | id | ) |
Get the information of a specific instance of literature.
| id | The unique ID of the literature. |
Definition at line 261 of file Catalogue.cs.
References Server.Catalogue.data, and Server.Data.DataContainer.LiteratureTable.
| Messages Server.Catalogue.UpdateLiterature | ( | LiteratureInfo | info | ) |
Updates a instance of the literature class.
| info | A LiteratureInfo struct containing information about the literature. |
Definition at line 274 of file Catalogue.cs.
References Shared.LiteratureInfo.author, Server.Catalogue.data, Shared.LiteratureInfo.id, Shared.LiteratureInfo.isbn, Server.Data.DataContainer.LiteratureTable, Shared.LiteratureInfo.source, Shared.LiteratureInfo.summary, Shared.LiteratureInfo.title, and Shared.LiteratureInfo.type.
| Messages Server.Catalogue.CreateComment | ( | CommentInfo | ci, | |
| out int | id | |||
| ) |
Create a new comment and save it.
| ci | A CommentInfo struct with the comment information. | |
| id | The id the created comment got. |
Definition at line 299 of file Catalogue.cs.
References Server.Reference.Comments, Server.Data.DataContainer.CommentTable, Server.Catalogue.data, Shared.CommentInfo.date, Server.Catalogue.GetReference(), Shared.CommentInfo.id, Server.Data.DataContainer.LiteratureTable, Shared.CommentInfo.parent, Server.Data.DataContainer.PersonTable, Shared.CommentInfo.poster, Shared.CommentInfo.project, Shared.CommentInfo.text, Shared.CommentInfo.title, and Shared.CommentInfo.type.
Here is the call graph for this function:

| CommentInfo [] Server.Catalogue.GetComments | ( | int | literatureID | ) |
Gets all comments for a specific instance of Literature.
| literatureID | The unique literature ID. |
Definition at line 344 of file Catalogue.cs.
References Server.Catalogue.data, Server.Catalogue.GetAllComments(), and Server.Data.DataContainer.LiteratureTable.
Here is the call graph for this function:

| CommentInfo [] Server.Catalogue.GetComments | ( | int | literatureID, | |
| int | projectID | |||
| ) |
Gets all comments for a specific reference.
| literatureID | The unique literature ID. | |
| projectID | The unique project ID. |
Definition at line 365 of file Catalogue.cs.
References Server.Catalogue.GetAllComments(), and Server.Catalogue.GetReference().
Here is the call graph for this function:

| ReviewInfo Server.Catalogue.GetReviewInfo | ( | int | project, | |
| int | literature | |||
| ) |
Get a information about a specific Review.
| project | ID of the project that contains the Review | |
| literature | ID of the literature the review refers to |
Definition at line 395 of file Catalogue.cs.
References Server.Catalogue.GetReference().
Here is the call graph for this function:

| ReviewInfo [] Server.Catalogue.ListReviews | ( | int | project | ) |
Lists all Reviews in a project.
| project | ID of project containing reviews |
Definition at line 413 of file Catalogue.cs.
References Server.Catalogue.data, Server.Data.DataContainer.LiteratureTable, and Server.Data.DataContainer.ProjectTable.
| Messages Server.Catalogue.CreateReview | ( | ReviewInfo | ri | ) |
Creates a Review.
| ri | A ReviewInfo struct containing all information needed to create the review. |
Definition at line 436 of file Catalogue.cs.
References Server.Reference.Comments, Server.Catalogue.data, Shared.ReviewInfo.date, Server.Catalogue.DeleteReference(), Server.Catalogue.GetReference(), Shared.ReviewInfo.literature, Server.Data.DataContainer.LiteratureTable, Shared.ReviewInfo.person, Server.Data.DataContainer.PersonTable, Shared.ReviewInfo.project, Server.Data.DataContainer.ProjectTable, Shared.ReviewInfo.rating, Shared.ReviewInfo.status, Shared.ReviewInfo.text, Shared.ReviewInfo.title, and Shared.ReviewInfo.used.
Here is the call graph for this function:

| Messages Server.Catalogue.UpdateReview | ( | ReviewInfo | ri | ) |
Change content of a Review.
| ri | Updated information. The project and literature parts of the struct is used to identify the reference. |
Definition at line 466 of file Catalogue.cs.
References Shared.ReviewInfo.date, Server.Reference.Date, Server.Catalogue.GetReference(), Shared.ReviewInfo.literature, Shared.ReviewInfo.project, Shared.ReviewInfo.rating, Server.Review.Rating, Shared.ReviewInfo.status, Server.Reference.Status, Shared.ReviewInfo.text, Server.Review.Text, Shared.ReviewInfo.title, Server.Review.Title, Shared.ReviewInfo.used, and Server.Reference.Used.
Here is the call graph for this function:

| Messages Server.Catalogue.CreateReference | ( | ReferenceInfo | ri | ) |
Create a new reference between a literature and a project instance.
| ri | A ReferenceInfo struct with the supplied information. |
Definition at line 492 of file Catalogue.cs.
References Server.Catalogue.data, Shared.ReferenceInfo.date, Server.Catalogue.GetReference(), Shared.ReferenceInfo.literature, Server.Data.DataContainer.LiteratureTable, Shared.ReferenceInfo.project, Server.Data.DataContainer.ProjectTable, Shared.ReferenceInfo.status, and Shared.ReferenceInfo.used.
Here is the call graph for this function:

| Messages Server.Catalogue.UpdateReference | ( | ReferenceInfo | ri | ) |
Update an existing reference.
| ri | A ReferenceInfo struct with the new information. |
Definition at line 511 of file Catalogue.cs.
References Shared.ReferenceInfo.date, Server.Reference.Date, Server.Catalogue.GetReference(), Shared.ReferenceInfo.literature, Shared.ReferenceInfo.project, Shared.ReferenceInfo.status, Server.Reference.Status, Shared.ReferenceInfo.used, and Server.Reference.Used.
Here is the call graph for this function:

| Reference Server.Catalogue.GetReference | ( | int | project, | |
| int | literature | |||
| ) | [private] |
Get a specific reference.
| project | The ID of the project in the reference. | |
| literature | The ID of the literature of the reference. |
Definition at line 528 of file Catalogue.cs.
References Server.Catalogue.data, and Server.Data.DataContainer.ProjectTable.
Referenced by Server.Catalogue.CreateComment(), Server.Catalogue.CreateReference(), Server.Catalogue.CreateReview(), Server.Catalogue.CreateSuggestion(), Server.Catalogue.DeleteReference(), Server.Catalogue.GetComments(), Server.Catalogue.GetReferenceInfo(), Server.Catalogue.GetReviewInfo(), Server.Catalogue.GetSuggestionInfo(), Server.Catalogue.UpdateReference(), Server.Catalogue.UpdateReview(), and Server.Catalogue.UpdateSuggestion().
Here is the caller graph for this function:

| Messages Server.Catalogue.DeleteReference | ( | int | project, | |
| int | literature | |||
| ) |
Deletes a reference, review or suggestion.
| project | ID of the project that contains the refenrence | |
| literature | ID of the literature the reference refers to. |
Definition at line 546 of file Catalogue.cs.
References Server.Catalogue.data, Server.Catalogue.GetReference(), Server.Data.DataContainer.LiteratureTable, and Server.Data.DataContainer.ProjectTable.
Referenced by Server.Catalogue.CreateReview(), Server.Catalogue.CreateSuggestion(), and Server.Catalogue.DeleteProject().
Here is the call graph for this function:

Here is the caller graph for this function:

| ReferenceInfo Server.Catalogue.GetReferenceInfo | ( | int | project, | |
| int | literature | |||
| ) |
Gets a ReferenceInfo struct describing a Reference.
| project | ID of the project that contains the Reference | |
| literature | ID of the literature the reference refers to |
Definition at line 562 of file Catalogue.cs.
References Server.Catalogue.GetReference().
Here is the call graph for this function:

| ReferenceInfo [] Server.Catalogue.ListReferences | ( | int | project | ) |
Gets a list of all references in a project.
| project | ID of the project |
Definition at line 580 of file Catalogue.cs.
References Server.Catalogue.data, Server.Data.DataContainer.LiteratureTable, and Server.Data.DataContainer.ProjectTable.
| Messages Server.Catalogue.CreateSuggestion | ( | SuggestionInfo | si | ) |
Create a new Suggestion.
| si | A SuggestionInfo containing information about the Suggestion. |
Definition at line 608 of file Catalogue.cs.
References Server.Reference.Comments, Server.Catalogue.data, Shared.SuggestionInfo.date, Server.Catalogue.DeleteReference(), Server.Catalogue.GetReference(), Shared.SuggestionInfo.literature, Server.Data.DataContainer.LiteratureTable, Shared.SuggestionInfo.person, Server.Data.DataContainer.PersonTable, Shared.SuggestionInfo.project, Server.Data.DataContainer.ProjectTable, Shared.SuggestionInfo.reason, Shared.SuggestionInfo.status, and Shared.SuggestionInfo.used.
Here is the call graph for this function:

| Messages Server.Catalogue.UpdateSuggestion | ( | SuggestionInfo | si | ) |
Updates a Suggestions content using a SuggestionInfo struct.
| si | Contains update information about a specific Suggestion identified using the project and literature parts of the SuggestionInfo |
Definition at line 637 of file Catalogue.cs.
References Shared.SuggestionInfo.date, Server.Reference.Date, Server.Catalogue.GetReference(), Shared.SuggestionInfo.literature, Shared.SuggestionInfo.project, Shared.SuggestionInfo.reason, Server.Suggestion.Reason, Shared.SuggestionInfo.status, Server.Reference.Status, Shared.SuggestionInfo.used, and Server.Reference.Used.
Here is the call graph for this function:

| SuggestionInfo Server.Catalogue.GetSuggestionInfo | ( | int | project, | |
| int | literature | |||
| ) |
Gets information about a specific Suggestion.
| project | ID of the project containing the Suggestion | |
| literature | ID of the literature the Suggestion refers to. |
Definition at line 657 of file Catalogue.cs.
References Server.Catalogue.GetReference().
Here is the call graph for this function:

| SuggestionInfo [] Server.Catalogue.ListSuggestions | ( | int | project | ) |
Lists all suggestion in a specific project.
| project | ID of the project whose Suggestions are to be listed. |
Definition at line 675 of file Catalogue.cs.
References Server.Catalogue.data, Server.Data.DataContainer.LiteratureTable, and Server.Data.DataContainer.ProjectTable.
| float Server.Catalogue.TermFrequency | ( | string | input, | |
| string | query | |||
| ) | [private] |
Counts all occurences of a specific word in a string. (case-insensitive).
| input | String to be searched | |
| query | Word to search for. |
Definition at line 704 of file Catalogue.cs.
Referenced by Server.Catalogue.TermFreq().
Here is the caller graph for this function:

| float Server.Catalogue.WordCount | ( | string | input | ) | [private] |
Counts amount of words in a string.
| input | String whose words are to be counted. |
Definition at line 714 of file Catalogue.cs.
Referenced by Server.Catalogue.TermFreq().
Here is the caller graph for this function:

| float Server.Catalogue.TermFreq | ( | string | title, | |
| string | text, | |||
| string | query | |||
| ) | [private] |
Calculates tf–idf (term frequency–inverse document frequency) http://en.wikipedia.org/wiki/TFIDF Is weighted in two categories, when words are found in the title of an item, and when its found in the text.
| title | Title of an item | |
| text | Text of an item | |
| query | Word to search for |
Definition at line 729 of file Catalogue.cs.
References Server.Catalogue.TermFrequency(), and Server.Catalogue.WordCount().
Referenced by Server.Catalogue.Search().
Here is the call graph for this function:

Here is the caller graph for this function:

| List<SearchResult> Server.Catalogue.Search | ( | string | query, | |
| ResultType | searchTypes | |||
| ) |
Search through database using a text query.
| query | String to search for. | |
| searchTypes | A flag representing the kinds of return data wanted. Eg: "ResultType.Project | ResultType.Literature" returns all projects and literature which match the query. |
Definition at line 751 of file Catalogue.cs.
References Server.Catalogue.data, Server.Data.DataContainer.LiteratureTable, and Server.Catalogue.TermFreq().
Here is the call graph for this function:

| ISearchable [] Server.Catalogue.ListItems | ( | ResultType | type | ) |
Lists all Items of the requested type. Listable types are Project, Person and Literature. (See ResultType).
| type | Which types to list. |
Definition at line 852 of file Catalogue.cs.
Referenced by Server.ServerConsole.ListAllUsers().
Here is the caller graph for this function:

| ISearchable [] Server.Catalogue.ListItems | ( | ResultType | type, | |
| string | creator | |||
| ) |
Lists all Items of the requested type. Listable types are Project, Person and Literature. (See ResultType).
| type | Which types to list. | |
| creator | Which person's items to show. |
Definition at line 882 of file Catalogue.cs.
| List<SearchResult> Server.Catalogue.SearchByTag | ( | string | tag | ) |
Returns all items which contains a specific tag.
| tag | A string with the name of a tag. |
Definition at line 911 of file Catalogue.cs.
| TagInfo [] Server.Catalogue.GetTags | ( | string | tag, | |
| int | id, | |||
| string | username | |||
| ) |
A search function for tags.
| tag | A specific tag. | |
| id | A specific id. | |
| username | A specific username. |
Definition at line 1011 of file Catalogue.cs.
| Messages Server.Catalogue.AddTag | ( | string | tag, | |
| int | id, | |||
| string | username | |||
| ) |
Add a new tag to a specific item.
| tag | The name of the tag. Must not be null. | |
| id | The unique id of the item. An int. | |
| username | The username of the person who adds the tag. Must not be null. |
Definition at line 1040 of file Catalogue.cs.
| Messages Server.Catalogue.RemoveTag | ( | string | tag, | |
| int | id, | |||
| string | username | |||
| ) |
Remove a specific tag from an item.
| tag | The name of the tag to be removed. | |
| id | The id of the item the tag is attached to. | |
| username | The username of the person who tries to remove the tag. |
Definition at line 1065 of file Catalogue.cs.
| int Server.Catalogue.CalcUniqueTags | ( | ) | [private] |
Gets amount of unique tag names in the tags table.
Definition at line 1088 of file Catalogue.cs.
| Messages Server.Catalogue.RegisterUser | ( | string | user, | |
| string | password, | |||
| string | name, | |||
| string | department, | |||
| string | ||||
| ) |
Create a new user in the system.
| user | The desired username. | |
| password | The users password. | |
| name | The real name of the user. | |
| department | The users department. | |
| The users email address. |
Definition at line 1118 of file Catalogue.cs.
References Server.Person.UserName.
| Person Server.Catalogue.GetUser | ( | string | user | ) |
Get a specific user in the system.
| user | The users unique username. |
Definition at line 1136 of file Catalogue.cs.
Referenced by Server.ServerConsole.AddModerator(), Server.Catalogue.CreateProject(), and Server.ServerConsole.RemoveModerator().
Here is the caller graph for this function:

| PersonInfo Server.Catalogue.GetPersonInfo | ( | string | username | ) |
Get a specific info of a specific user.
| username | The username of the user. |
Definition at line 1148 of file Catalogue.cs.
| Messages Server.Catalogue.UpdatePerson | ( | PersonInfo | pi | ) |
Updates an existing instance of Person.
| pi | A PersonInfo struct containing the new information. |
Definition at line 1162 of file Catalogue.cs.
References Shared.PersonInfo.department, Shared.PersonInfo.email, Shared.PersonInfo.name, Shared.PersonInfo.password, and Shared.PersonInfo.username.
| RoleInfo [] Server.Catalogue.GetRoles | ( | int | id | ) |
Get all roles in a specific project.
| id | A unique Project ID. |
Definition at line 1186 of file Catalogue.cs.
Assign a user to a project.
| username | A string with a username | |
| project | The project to be assigned to. | |
| role | The users new role in the project. |
Definition at line 1204 of file Catalogue.cs.
| Messages Server.Catalogue.UnassignUser | ( | string | username, | |
| int | project | |||
| ) |
Remove a user from a project.
| username | The username of the user. | |
| project | The project ID |
Definition at line 1218 of file Catalogue.cs.
| Role Server.Catalogue.GetRole | ( | int | project, | |
| string | username | |||
| ) |
Get a specific persons role in a specific project.
| project | The id of the project. | |
| username | The username of the person. |
Definition at line 1234 of file Catalogue.cs.
| StatisticsInfo Server.Catalogue.GetStatistics | ( | ) |
Gets some amount information about the catalogue. Number of people, projects, unique tags, tag hits and literature.
Definition at line 1249 of file Catalogue.cs.
1.5.1-p1