Project Role
Access path: PublicAPI.Projects.ProjectRoleMethods
Name | Description | |
---|---|---|
AddUserToProjectRole(Project, ProjectRole, User) |
Add a user to the project role
| |
AddUserToProjectRole(Project, ProjectRole, IEnumerable User ) |
Add a user to the project role
| |
Count |
Returns the total number of objects of this type
| |
Count(IEntityFilter) |
Get Total Number of Objects by Filter
| |
Create |
Create New Entity (without a Database entry)
| |
CreateProjectRole |
Create a project role.
Creates an object, without saving in the database
| |
Delete |
Delete the role
| |
DeleteProjectRole |
Delete the project role
| |
Filter |
Creates an assistant for working with the "Project Role" object filter
| |
Find(FetchOptions) |
Find objects according to fetch options
| |
Find(String) |
Find objects according to the filter in the EQL language
| |
Find(IEntityFilter, FetchOptions) |
Fing objects according to fetch options and filter
| |
FindByIdArray |
Find All Objects by Array IDs
| |
GetAllProjectRoleUsers |
Get all the project role users
| |
IsDirty |
Check, if there are unsaved changes in the object
| |
IsNew |
Check, if the object is new (not saved in the database)
| |
Load(Guid) |
Load by UID. If not found, an exception is invoked
| |
Load(Int64) |
Load by ID. If not found, an exception is invoked
| |
LoadOrCreate(Guid) |
Load by ID. If not found, the new object is returned
| |
LoadOrCreate(Int64) |
Load by ID. If not found, the new object is returned
| |
LoadOrNull(Guid) |
Load by UID. If not found, null is returned
| |
LoadOrNull(Int64) |
Load by ID. If not found, null is returned
| |
Refresh |
Refresh (read over) Object from Database
| |
RemoveUserFromProjectRole(Project, ProjectRole, User) |
Delete a user from the project role
| |
RemoveUserFromProjectRole(Project, ProjectRole, IEnumerable User ) |
Delete users from the project role
| |
Save |
Save entity to database
|
Properties
Name | Description | |
---|---|---|
TypeUid |
Returns the unique object identifier "Project Role"
|
Remarks
Examples
Create a project role for the project createdhere
var projectRole = PublicAPI.Projects.ProjectRole.CreateProjectRole(myProject, "New Project Role");
Add users to the project role
PublicAPI.Projects.ProjectRole.AddUserToProjectRole(myProject, projectRole, context.UserList);
Several users can be deleted from the project role
PublicAPI.Projects.ProjectRole.RemoveUserFromProjectRole(myProject, projectRole, context.UserPetrov);
Adding and deleting permissions for project roles are described here
See Also