class ProjectPrivilege

Introduction

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.

Constructor:

ProjectPrivilege ProjectPrivilege ( integer privilege_id, datatype project_id, datatype privilege_holder_id, datatype is_role_bound, datatype include_subtasks)

Discussion of constructor

Methods

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()
void save()

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.

ProjectPrivilege get_by_project_space_privilege_id (integer psp_id)

Returns the ProjectPrivilege object referenced by the psp_id argument.

Privilege get_privilege()

Returns the Privilege object associate with the current ProjectPrivilege object.

integer get_project_space_privilege_id()

Returns the unique ID of the current ProjectPrivilege object.

integer get_project_space_id()

Returns the unique ID of the ProjectSpace object on which the current ProjectPrivilege object is granted.

integer get_privilege_holder_id()

Returns the unique ID of the person to whom, or role to which, the current ProjectPrivilege object is assigned.

boolean is_role_bound()

Returns true if the current ProjectPrivilege object is held by a role, or false if it is assigned to a person.

boolean includes_subtree()

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.

void include_subtree()

Extends the current ProjectPrivilege object to cover child projects and project spaces.

void exclude_subtree()

Confines the coverage of the current ProjectPrivilege object to the ProjectSpace to which it is assigned, excluding child projects and project spaces.

See Also:

class OtherClass