Interface FriendProvider


public interface FriendProvider
Provides access to a list of friends.

Clients may implement this interface.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Friend>
    getFriend(URI resourceURI)
    Returns the friend owning the given resource, if any.
    Returns a list of known friends.
  • Method Details

    • getFriends

      Collection<Friend> getFriends()

      Returns a list of known friends.

      This method shall be called frequently by the OslcClient. It is the responsibility of the implementing class to decide whether a cache is to use and to implement it if needed.

      Returns:
      the list of friends on which OAuth connection can be realized.
    • getFriend

      default Optional<Friend> getFriend(URI resourceURI)
      Returns the friend owning the given resource, if any.
      Parameters:
      resourceURI - the resource URI
      Returns:
      the friend owning the resource
      Since:
      1.13.0