Class ExtraRolesUserRoleListServiceDecorator
- java.lang.Object
-
- org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IUserRoleListService
public class ExtraRolesUserRoleListServiceDecorator extends Object implements org.pentaho.platform.api.engine.IUserRoleListService
Decorates anotherIUserRoleListService
and returns a merged list consisting of the original roles fromIUserRoleListService.getAllRoles()
plus the extra roles. Roles are added to the end of the list and only if they don't already exist. Use withDefaultRoleUserDetailsServiceDecorator
.- Author:
- mlowery
-
-
Constructor Summary
Constructors Constructor Description ExtraRolesUserRoleListServiceDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getAllRoles
public List<String> getAllRoles()
- Specified by:
getAllRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getAllUsers
public List<String> getAllUsers()
- Specified by:
getAllUsers
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
setUserRoleListService
public void setUserRoleListService(org.pentaho.platform.api.engine.IUserRoleListService userRoleListService)
-
getAllRoles
public List<String> getAllRoles(org.pentaho.platform.api.mt.ITenant tenant)
- Specified by:
getAllRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getAllUsers
public List<String> getAllUsers(org.pentaho.platform.api.mt.ITenant tenant)
- Specified by:
getAllUsers
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getUsersInRole
public List<String> getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, String role)
- Specified by:
getUsersInRole
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getRolesForUser
public List<String> getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant, String username)
- Specified by:
getRolesForUser
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
-