Class InMemoryUserRoleListService

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IUserRoleListService, org.springframework.beans.factory.InitializingBean

    public class InMemoryUserRoleListService
    extends Object
    implements org.pentaho.platform.api.engine.IUserRoleListService, org.springframework.beans.factory.InitializingBean
    An in-memory implementation of UserRoleListService.
    Author:
    mlowery
    • Constructor Detail

      • InMemoryUserRoleListService

        public InMemoryUserRoleListService()
    • Method Detail

      • getAllRoles

        public List<String> getAllRoles()
        Specified by:
        getAllRoles in interface org.pentaho.platform.api.engine.IUserRoleListService
      • getAllUsers

        public List<String> getAllUsers()
        Specified by:
        getAllUsers in interface org.pentaho.platform.api.engine.IUserRoleListService
      • getUsersInRole

        public List<String> getUsersInRole​(org.pentaho.platform.api.mt.ITenant tenant,
                                           String role)
        Specified by:
        getUsersInRole in interface org.pentaho.platform.api.engine.IUserRoleListService
      • setAllRoles

        public void setAllRoles​(List<String> allRoles)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getRolesForUser

        public List<String> getRolesForUser​(org.pentaho.platform.api.mt.ITenant tenant,
                                            String username)
                                     throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Specified by:
        getRolesForUser in interface org.pentaho.platform.api.engine.IUserRoleListService
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • setUserRoleListEnhancedUserMap

        public void setUserRoleListEnhancedUserMap​(UserRoleListEnhancedUserMap userRoleListEnhancedUserMap)
      • getUserDetailsService

        public org.springframework.security.core.userdetails.UserDetailsService getUserDetailsService()
      • 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)
      • getAllRoles

        public List<String> getAllRoles​(org.pentaho.platform.api.mt.ITenant tenant)
        Specified by:
        getAllRoles in interface org.pentaho.platform.api.engine.IUserRoleListService
      • getAllUsers

        public List<String> getAllUsers​(org.pentaho.platform.api.mt.ITenant tenant)
        Specified by:
        getAllUsers in interface org.pentaho.platform.api.engine.IUserRoleListService
      • getSystemRoles

        public List<String> getSystemRoles()
        Specified by:
        getSystemRoles in interface org.pentaho.platform.api.engine.IUserRoleListService
      • setSystemRoles

        public void setSystemRoles​(List<String> systemRoles)