class ProjectSpacePrivilege

Introduction

ProjectSpacePrivilege represents a single Privilege object assigned to a user or role for a given project space. The privilege may extend to child project spaces or projects of the project space, or be confined to the project space to which it is assigned.

Constructor:

ProjectSpacePrivilege ProjectSpacePrivilege ( integer privilege_id, integer project_space_id, integer privilege_holder_id, boolean is_role_bound, boolean include_children)

Creates and returns a new ProjectSpacePrivilege object. This object will not have a unique ID until it is saved.

Methods

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

ProjectSpacePrivilege get_by_project_space_privilege_id (integer psp_id)

Returns the ProjectSpacePrivilege object referenced by the psp_id argument.

Privilege get_privilege()

Returns the Privilege object associate with the current ProjectSpacePrivilege object.

integer get_project_space_privilege_id()

Returns the unique ID of the current ProjectSpacePrivilege object.

integer get_project_space_id()

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

integer get_privilege_holder_id()

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

boolean is_role_bound()

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

boolean includes_subtree()

Returns true if the current ProjectSpacePrivilege 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 ProjectSpacePrivilege object to cover child projects and project spaces.

void exclude_subtree()

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

See Also:

class OtherClass