PublicAPI.Projects.ProjectRoleELMA API Documentation
Project Role
Access path: PublicAPI.Projects.ProjectRole
Methods

  NameDescription
Public methodAddUserToProjectRole(Project, ProjectRole, User)
Add a user to the project role
Public methodAddUserToProjectRole(Project, ProjectRole, IEnumerable User )
Add a user to the project role
Public methodCount 
Returns the total number of objects of this type
Public methodCount(IEntityFilter)
Get Total Number of Objects by Filter
Public methodCreate
Create New Entity (without a Database entry)
Public methodCreateProjectRole
Create a project role. Creates an object, without saving in the database
Public methodDelete
Delete the role
Public methodDeleteProjectRole
Delete the project role
Public methodFilter
Creates an assistant for working with the "Project Role" object filter
Public methodFind(FetchOptions)
Find objects according to fetch options
Public methodFind(String)
Find objects according to the filter in the EQL language
Public methodFind(IEntityFilter, FetchOptions)
Fing objects according to fetch options and filter
Public methodFindByIdArray
Find All Objects by Array IDs
Public methodGetAllProjectRoleUsers
Get all the project role users
Public methodIsDirty
Check, if there are unsaved changes in the object
Public methodIsNew
Check, if the object is new (not saved in the database)
Public methodLoad(Guid)
Load by UID. If not found, an exception is invoked
Public methodLoad(Int64)
Load by ID. If not found, an exception is invoked
Public methodLoadOrCreate(Guid)
Load by ID. If not found, the new object is returned
Public methodLoadOrCreate(Int64)
Load by ID. If not found, the new object is returned
Public methodLoadOrNull(Guid)
Load by UID. If not found, null is returned
Public methodLoadOrNull(Int64)
Load by ID. If not found, null is returned
Public methodRefresh
Refresh (read over) Object from Database
Public methodRemoveUserFromProjectRole(Project, ProjectRole, User)
Delete a user from the project role
Public methodRemoveUserFromProjectRole(Project, ProjectRole, IEnumerable User )
Delete users from the project role
Public methodSave
Save entity to database
Back to Top
Properties

  NameDescription
Public propertyTypeUid
Returns the unique object identifier "Project Role"
Back to Top
Remarks

Section containing methods for managing project roles
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