ProjectPrivilege represents a single Privilege assigned to a user or role for a given project. The privilege may extend to sub-projects [tasks] of the project, or be confined to the project to which it is assigned.
ProjectPrivilege ProjectPrivilege ( integer privilege_id, datatype project_id, datatype privilege_holder_id, datatype is_role_bound, datatype include_subtasks)
Discussion of constructor
void save()
ProjectPrivilege get_by_project_space_privilege_id (integer psp_id)
Privilege get_privilege()
integer get_project_space_privilege_id()
integer get_project_space_id()
integer get_privilege_holder_id()
boolean is_role_bound()
boolean includes_subtree()
void include_subtree()
void exclude_subtree()
Saves the current ProjectPrivilege object. If the object is newly created, a new record will be added and a unique ID assigned. Otherwise, the existing object will be updated.
Returns the ProjectPrivilege object referenced by the psp_id argument.
Returns the Privilege object associate with the current ProjectPrivilege object.
Returns the unique ID of the current ProjectPrivilege object.
Returns the unique ID of the ProjectSpace object on which the current ProjectPrivilege object is granted.
Returns the unique ID of the person to whom, or role to which, the current ProjectPrivilege object is assigned.
Returns true if the current ProjectPrivilege object is held by a role, or false if it is assigned to a person.
Returns true if the current ProjectPrivilege object extends to child projects or project spaces, or false if it is valid only for the project space to which it is assigned.
Extends the current ProjectPrivilege object to cover child projects and project spaces.
Confines the coverage of the current ProjectPrivilege object to the ProjectSpace to which it is assigned, excluding child projects and project spaces.
class OtherClass