Class SuperUserRoleListService

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IUserRoleListService

    public class SuperUserRoleListService
    extends Object
    implements org.pentaho.platform.api.engine.IUserRoleListService
    An IUserRoleListService that delegates to an IUserRoleDao.
    Author:
    mlowery
    • Constructor Detail

      • SuperUserRoleListService

        public SuperUserRoleListService()
      • SuperUserRoleListService

        public SuperUserRoleListService​(String role,
                                        String user,
                                        List<String> systemRoles)
    • Method Detail

      • getAllRoles

        public List<String> getAllRoles()
        Specified by:
        getAllRoles in interface org.pentaho.platform.api.engine.IUserRoleListService
      • 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()
        Specified by:
        getAllUsers 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
      • getRolesForUser

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

        public List<String> getUsersInRole​(org.pentaho.platform.api.mt.ITenant tenant,
                                           org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role,
                                           String roleName)
      • getUsersInRole

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

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