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.
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.
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()
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.
Returns the ProjectSpacePrivilege object referenced by the psp_id argument.
Returns the Privilege object associate with the current ProjectSpacePrivilege object.
Returns the unique ID of the current ProjectSpacePrivilege object.
Returns the unique ID of the ProjectSpace object on which the current ProjectSpacePrivilege object is granted.
Returns the unique ID of the person to whom, or role to which, the current ProjectSpacePrivilege object is assigned.
Returns true if the current ProjectSpacePrivilege object is held by a role, or false if it is assigned to a person.
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.
Extends the current ProjectSpacePrivilege object to cover child projects and project spaces.
Confines the coverage of the current ProjectSpacePrivilege object to the ProjectSpace to which it is assigned, excluding child projects and project spaces.
class OtherClass