Class ExtraRolesUserRoleListServiceDecorator

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

    public class ExtraRolesUserRoleListServiceDecorator
    extends Object
    implements org.pentaho.platform.api.engine.IUserRoleListService
    Decorates another IUserRoleListService and returns a merged list consisting of the original roles from IUserRoleListService.getAllRoles() plus the extra roles. Roles are added to the end of the list and only if they don't already exist. Use with DefaultRoleUserDetailsServiceDecorator.
    Author:
    mlowery
    • Constructor Detail

      • ExtraRolesUserRoleListServiceDecorator

        public ExtraRolesUserRoleListServiceDecorator()
    • Method Detail

      • getAllRoles

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

        protected List<String> getNewRoles()
      • getAllUsers

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

        public void setUserRoleListService​(org.pentaho.platform.api.engine.IUserRoleListService userRoleListService)
      • setExtraRoles

        public void setExtraRoles​(List<String> extraRoles)
      • setSystemRoles

        public void setSystemRoles​(Set<String> systemRoles)
      • 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
      • 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
      • getSystemRoles

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