Interface RoleContainerModel

    • Method Detail

      • removeRole

        boolean removeRole​(RoleModel role)
      • getRolesStream

        Stream<RoleModel> getRolesStream()
        Returns available roles as a stream.
        Returns:
        Stream of RoleModel. Never returns null.
      • getRolesStream

        Stream<RoleModel> getRolesStream​(Integer firstResult,
                                         Integer maxResults)
        Returns available roles as a stream.
        Parameters:
        firstResult - Integer Index of the first desired role. Ignored if negative or null.
        maxResults - Integer Maximum number of returned roles. Ignored if negative or null.
        Returns:
        Stream of RoleModel. Never returns null.
      • searchForRolesStream

        Stream<RoleModel> searchForRolesStream​(String search,
                                               Integer first,
                                               Integer max)
        Searches roles by the given name. Returns all roles that match the given filter.
        Parameters:
        search - String Name of the role to be used as a filter.
        first - Integer Index of the first desired role. Ignored if negative or null.
        max - Integer Maximum number of returned roles. Ignored if negative or null.
        Returns:
        Stream of RoleModel. Never returns null.
      • getDefaultRoles

        @Deprecated
        default List<String> getDefaultRoles()
        Deprecated.
        Default roles are now managed by RealmModel.getDefaultRole(). This method will be removed.
        Returns:
        List of default roles names or empty list if there are none. Never returns null.
      • getDefaultRolesStream

        @Deprecated
        Stream<String> getDefaultRolesStream()
        Deprecated.
        Default roles are now managed by RealmModel.getDefaultRole(). This method will be removed.
        Returns:
        Stream of default roles names or empty stream if there are none. Never returns null.