Class 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.

    • Constructor Detail

      • CompositeUserRoleListService

        public CompositeUserRoleListService​(List<org.pentaho.platform.api.engine.IUserRoleListService> delegates)
    • Method Detail

      • setStrategy

        public void setStrategy​(String strategy)
      • getAllRoles

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

        public List<String> getSystemRoles()
        Specified by:
        getSystemRoles 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
      • 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
      • getRolesForUser

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