Package org.pentaho.platform.api.engine
Interface IUserRoleListService
public interface IUserRoleListService
-
Method Summary
Modifier and TypeMethodDescriptionReturns all authorities known to the provider.getAllRoles
(ITenant tenant) Returns all authorities known to the provider for a given tenant.Returns all user names known to the provider.getAllUsers
(ITenant tenant) Returns all user names known to the provider for a given tenant.getRolesForUser
(ITenant tenant, String username) Returns all authorities granted for a specified user.Returns all system authorities known to the provider.getUsersInRole
(ITenant tenant, String role) Returns all known users in the specified role.
-
Method Details
-
getAllRoles
Returns all authorities known to the provider. Cannot returnnull
.- Returns:
- Returns the authorities. Cannot return
null
.
-
getSystemRoles
Returns all system authorities known to the provider. Cannot returnnull
.- Returns:
- Returns the authorities. Cannot return
null
.
-
getAllRoles
Returns all authorities known to the provider for a given tenant. Cannot returnnull
.- Parameters:
tenant
- To be used for searching authorities.- Returns:
- Returns the authorities. Cannot return
null
.
-
getAllUsers
Returns all user names known to the provider. Cannot returnnull
.- Returns:
- Returns the users. Cannot return
null
.
-
getAllUsers
Returns all user names known to the provider for a given tenant. Cannot returnnull
.- Parameters:
tenant
- Tenant to be used for searching users.- Returns:
- Returns the users. Cannot return
null
.
-
getUsersInRole
Returns all known users in the specified role. Cannot returnnull
.- Parameters:
tenant
- Tenant information.authority
- Indicates the authority to look users up by. Cannot benull
.- Returns:
- Returns the users with the specified roles in scope of the specified tenant. Cannot return
null
.
-
getRolesForUser
Returns all authorities granted for a specified user.- Parameters:
tenant
- Tenant information.username
- Indicates the name of the user to look up authorities for.- Returns:
- Returns the authorities of the user. Cannot return
null
.
-