# Class: RoleService

## tibco.objectapi.service.RoleService

#### new RoleService()

### Methods

#### getRoleModel(request, callback)

Gets the full RoleModel for a specified role.

##### Parameters:

Name | Type | Description
--- | --- | ---
`request` | tibco.objectapi.service.request.GetRoleModelRequest | A request set with data for this service call.
`callback` | tibco.objectapi.service.Callback | A callback to handle the service response of type `RoleModel`.

#### getRoleSettings(request, callback)

Gets the settings for a role for the specified application, and optionally, a component.

If only an application is specified, the settings for the application are retrieved.

If an application and component are specified, the settings for the component within the application are retrieved.

##### Parameters:

Name | Type | Description
--- | --- | ---
`request` | tibco.objectapi.service.request.GetRoleSettingsRequest | A request set with data for this service call.
`callback` | tibco.objectapi.service.Callback | A callback to handle the service response of type `RoleSettings`.

#### listRolesExt(request, callback)

Lists the available roles. This function should be used instead of the listRoles function when there is a large number of targets, which would causes the URL to exceed the length limit.

##### Parameters:

Name | Type | Description
--- | --- | ---
`request` | tibco.objectapi.service.request.ListRolesExtRequest | A request set with data for this service call.
`callback` | tibco.objectapi.service.Callback | A callback to handle the service response of type `Role[]`.