RT 5.0.2 Documentation

RT::CustomRoles

Go to latest version →

NAME

RT::CustomRoles - collection of RT::CustomRole records

DESCRIPTION

Collection of RT::CustomRole records. Inherits methods from RT::SearchBuilder.

METHODS

Table

Returns name of the table where records are stored.

RegisterRoles

This declares all (enabled) custom roles to the RT::Record::Role::Roles subsystem, suitable for system startup.

LimitToObjectId

Takes an ObjectId and limits the collection to custom roles applied to said object.

When called multiple times the ObjectId limits are joined with OR.

LimitToSingleValue

Limits the list of custom roles to only those that take a single value.

LimitToMultipleValue

Limits the list of custom roles to only those that take multiple values.

ApplySortOrder

Sort custom roles according to the order provided by the object custom roles.

LimitToNotAdded

Takes either list of object ids or nothing. Limits collection to custom roles to listed objects or any corespondingly.

LimitToAdded

Limits collection to custom roles to listed objects or any corespondingly.

← Back to index