Interface RoleModel

    • Method Detail

      • getDescription

        String getDescription()
      • setDescription

        void setDescription​(String description)
      • setName

        void setName​(String name)
      • isComposite

        boolean isComposite()
      • addCompositeRole

        void addCompositeRole​(RoleModel role)
      • removeCompositeRole

        void removeCompositeRole​(RoleModel role)
      • getCompositesStream

        default Stream<RoleModel> getCompositesStream()
        Returns all composite roles as a stream.
        Returns:
        Stream of RoleModel. Never returns null.
      • getCompositesStream

        Stream<RoleModel> getCompositesStream​(String search,
                                              Integer first,
                                              Integer max)
        Returns a paginated stream of composite roles of this role that contain given string in its name.
        Parameters:
        search - Case-insensitive search string
        first - Index of the first result to return. Ignored if negative or null.
        max - Maximum number of results to return. Ignored if negative or null.
        Returns:
        A stream of requested roles ordered by the role name
      • isClientRole

        boolean isClientRole()
      • getContainerId

        String getContainerId()
      • hasRole

        boolean hasRole​(RoleModel role)
      • setSingleAttribute

        void setSingleAttribute​(String name,
                                String value)
      • removeAttribute

        void removeAttribute​(String name)
      • getFirstAttribute

        default String getFirstAttribute​(String name)
      • getAttributeStream

        Stream<String> getAttributeStream​(String name)
        Returns all role's attributes that match the given name as a stream.
        Parameters:
        name - String Name of an attribute to be used as a filter.
        Returns:
        Stream of String. Never returns null.