Class GetGlobalConfigurationFriend

    • Constructor Detail

      • GetGlobalConfigurationFriend

        public GetGlobalConfigurationFriend​(OslcClient client,
                                            URI rootServicesLocation)
        Creates a request to read information on the Jazz Global Configuration application registered as a friend of the specified OSLC application.
        Parameters:
        client - the OSLC client to connect to the application.
        rootServicesLocation - the URI of an OSLC application root services (e.g. https://myserver:9443/rm/rootservices) which has friends.
      • GetGlobalConfigurationFriend

        public GetGlobalConfigurationFriend​(FriendProvider friendProvider)
        Creates a request to read information on the Jazz Global Configuration application registered as a friend in the specified provider.
        Parameters:
        friendProvider - a provider of friends.
        Since:
        1.4.0
    • Method Detail

      • call

        public Optional<Friend> call()
        Returns the Jazz Global Configuration application registered as a friend of a specific OSLC application, if any. This method returns Optional.empty() if the OSLC application has no registered friend for Jazz Global Configuration or if the user has no access to this friend information.
        Specified by:
        call in interface Callable<Optional<Friend>>
        Specified by:
        call in interface ResourceRequest<Optional<Friend>>
      • getAll

        public GetGlobalConfigurationFriend.Result getAll()
        Returns a Result instance that gives access to all Jazz Global Configuration applications registered as friends, as well as friend applications that couldn't be reached.
        Returns:
        a Result instance.
        Since:
        2.0.0