public class ExtraRolesUserRoleListServiceDecorator extends Object implements org.pentaho.platform.api.engine.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(org.pentaho.platform.api.mt.ITenant tenant) |
List<String> |
getAllUsers() |
List<String> |
getAllUsers(org.pentaho.platform.api.mt.ITenant tenant) |
protected List<String> |
getNewRoles() |
List<String> |
getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant,
String username) |
List<String> |
getSystemRoles() |
List<String> |
getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant,
String role) |
void |
setExtraRoles(List<String> extraRoles) |
void |
setSystemRoles(Set<String> systemRoles) |
void |
setUserRoleListService(org.pentaho.platform.api.engine.IUserRoleListService userRoleListService) |
public ExtraRolesUserRoleListServiceDecorator()
public List<String> getAllRoles()
getAllRoles
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getAllUsers()
getAllUsers
in interface org.pentaho.platform.api.engine.IUserRoleListService
public void setUserRoleListService(org.pentaho.platform.api.engine.IUserRoleListService userRoleListService)
public List<String> getAllRoles(org.pentaho.platform.api.mt.ITenant tenant)
getAllRoles
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getAllUsers(org.pentaho.platform.api.mt.ITenant tenant)
getAllUsers
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, String role)
getUsersInRole
in interface org.pentaho.platform.api.engine.IUserRoleListService
public List<String> getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant, String username)
getRolesForUser
in interface org.pentaho.platform.api.engine.IUserRoleListService
Copyright © 2018 Hitachi Vantara. All rights reserved.