Class GetGlobalConfigurationFriend
java.lang.Object
com.sodius.oslc.app.jazz.requests.GetGlobalConfigurationFriend
public class GetGlobalConfigurationFriend
extends Object
implements ResourceRequest<Optional<Friend>>
Retrieves information on the Jazz Global Configuration application registered as a friend of a specific OSLC application.
- Since:
- 1.3.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReferences discovered global configuration friends and friend applications that cannot be reached. -
Constructor Summary
ConstructorsConstructorDescriptionGetGlobalConfigurationFriend(FriendProvider friendProvider) Creates a request to read information on the Jazz Global Configuration application registered as a friend in the specified provider.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. -
Method Summary
Modifier and TypeMethodDescriptioncall()Returns the Jazz Global Configuration application registered as a friend of a specific OSLC application, if any.getAll()Returns aResultinstance that gives access to all Jazz Global Configuration applications registered as friends, as well as friend applications that couldn't be reached.
-
Constructor Details
-
GetGlobalConfigurationFriend
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
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 Details
-
call
Returns the Jazz Global Configuration application registered as a friend of a specific OSLC application, if any. This method returnsOptional.empty()if the OSLC application has no registered friend for Jazz Global Configuration or if the user has no access to this friend information. -
getAll
Returns aResultinstance that gives access to all Jazz Global Configuration applications registered as friends, as well as friend applications that couldn't be reached.- Returns:
- a
Resultinstance. - Since:
- 2.0.0
-