Class CompositeUserRoleListService
- java.lang.Object
-
- org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IUserRoleListService
public class CompositeUserRoleListService extends Object implements org.pentaho.platform.api.engine.IUserRoleListService
This class delgates calls to a configured list of IUserRoleListService delegates. The results are determined by the STRATEGY in effect, either returning the results from the first delegate returning a non-empty value (STRATEGY.FIRST_MATCH), or combining the results from all delegates together in an unique list (STRATEGY.ADDITIVE) Created by nbaker on 5/13/14.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositeUserRoleListService.STRATEGY
-
Constructor Summary
Constructors Constructor Description CompositeUserRoleListService(List<org.pentaho.platform.api.engine.IUserRoleListService> delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeUserRoleListService.STRATEGY
getActiveStrategy()
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)
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
setStrategy(String strategy)
void
setStrategy(CompositeUserRoleListService.STRATEGY strategy)
-
-
-
Constructor Detail
-
CompositeUserRoleListService
public CompositeUserRoleListService(List<org.pentaho.platform.api.engine.IUserRoleListService> delegates)
-
-
Method Detail
-
setStrategy
public void setStrategy(CompositeUserRoleListService.STRATEGY strategy)
-
setStrategy
public void setStrategy(String strategy)
-
getActiveStrategy
public CompositeUserRoleListService.STRATEGY getActiveStrategy()
-
getAllRoles
public List<String> getAllRoles()
- Specified by:
getAllRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
getSystemRoles
public List<String> getSystemRoles()
- Specified by:
getSystemRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
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()
- Specified by:
getAllUsers
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
-
-