Class DefaultLdapUserRoleListService
- java.lang.Object
-
- org.pentaho.platform.plugin.services.security.userrole.ldap.DefaultLdapUserRoleListService
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IUserRoleListService
,org.springframework.beans.factory.InitializingBean
public class DefaultLdapUserRoleListService extends Object implements org.pentaho.platform.api.engine.IUserRoleListService, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description DefaultLdapUserRoleListService()
DefaultLdapUserRoleListService(Comparator<String> usernameComparator, Comparator<String> roleComparator)
DefaultLdapUserRoleListService(Comparator<String> usernameComparator, Comparator<String> roleComparator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
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>
getExtraRoles()
org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
getRoleNameUtils()
List<String>
getRolesForUser(org.pentaho.platform.api.mt.ITenant tenant, String username)
List<String>
getSystemRoles()
org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
getUserNameUtils()
List<String>
getUsersInRole(org.pentaho.platform.api.mt.ITenant tenant, String role)
void
setAllAuthoritiesSearch(LdapSearch allAuthoritiesSearch)
void
setAllUsernamesSearch(LdapSearch allUsernamesSearch)
void
setExtraRoles(List<String> extraRoles)
void
setRoleComparator(Comparator<String> roleComparator)
void
setRoleNameUtils(org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver roleNameUtils)
void
setSystemRoles(List<String> systemRoles)
void
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
void
setUsernameComparator(Comparator<String> usernameComparator)
void
setUsernamesInRoleSearch(LdapSearch usernamesInRoleSearch)
void
setUserNameUtils(org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver userNameUtils)
-
-
-
Constructor Detail
-
DefaultLdapUserRoleListService
public DefaultLdapUserRoleListService()
-
DefaultLdapUserRoleListService
public DefaultLdapUserRoleListService(Comparator<String> usernameComparator, Comparator<String> roleComparator)
-
DefaultLdapUserRoleListService
public DefaultLdapUserRoleListService(Comparator<String> usernameComparator, Comparator<String> roleComparator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
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
-
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
-
setAllUsernamesSearch
public void setAllUsernamesSearch(LdapSearch allUsernamesSearch)
-
setAllAuthoritiesSearch
public void setAllAuthoritiesSearch(LdapSearch allAuthoritiesSearch)
-
setUsernamesInRoleSearch
public void setUsernamesInRoleSearch(LdapSearch usernamesInRoleSearch)
-
setUserDetailsService
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
-
setRoleComparator
public void setRoleComparator(Comparator<String> roleComparator)
-
setUsernameComparator
public void setUsernameComparator(Comparator<String> usernameComparator)
-
getUserNameUtils
public org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver getUserNameUtils()
-
setUserNameUtils
public void setUserNameUtils(org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver userNameUtils)
-
getRoleNameUtils
public org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver getRoleNameUtils()
-
setRoleNameUtils
public void setRoleNameUtils(org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver roleNameUtils)
-
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
-
getSystemRoles
public List<String> getSystemRoles()
- Specified by:
getSystemRoles
in interfaceorg.pentaho.platform.api.engine.IUserRoleListService
-
-