public class ExtraRolesUserRoleListServiceDecorator extends Object implements IUserRoleListService
IUserRoleListService
and returns a merged list consisting of the original roles from
IUserRoleListService.getAllRoles()
plus the extra roles. Roles are added to the end of the list and only if
they don't already exist.
Use with DefaultRoleUserDetailsServiceDecorator
.Constructor and Description |
---|
ExtraRolesUserRoleListServiceDecorator() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllRoles() |
List<String> |
getAllRoles(ITenant tenant) |
List<String> |
getAllUsers() |
List<String> |
getAllUsers(ITenant tenant) |
protected List<String> |
getNewRoles() |
List<String> |
getRolesForUser(ITenant tenant,
String username) |
List<String> |
getSystemRoles() |
List<String> |
getUsersInRole(ITenant tenant,
String role) |
void |
setExtraRoles(List<String> extraRoles) |
void |
setSystemRoles(Set<String> systemRoles) |
void |
setUserRoleListService(IUserRoleListService userRoleListService) |
public ExtraRolesUserRoleListServiceDecorator()
public List<String> getAllRoles()
getAllRoles
in interface IUserRoleListService
public List<String> getAllUsers()
getAllUsers
in interface IUserRoleListService
public void setUserRoleListService(IUserRoleListService userRoleListService)
public List<String> getAllRoles(ITenant tenant)
getAllRoles
in interface IUserRoleListService
public List<String> getAllUsers(ITenant tenant)
getAllUsers
in interface IUserRoleListService
public List<String> getUsersInRole(ITenant tenant, String role)
getUsersInRole
in interface IUserRoleListService
public List<String> getRolesForUser(ITenant tenant, String username)
getRolesForUser
in interface IUserRoleListService
public List<String> getSystemRoles()
getSystemRoles
in interface IUserRoleListService
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.