public class GetGlobalConfigurationFriend extends Object implements ResourceRequest<Optional<Friend>>
GetGlobalConfigurationSelectionDialog
Modifier and Type | Class and Description |
---|---|
static class |
GetGlobalConfigurationFriend.Result
References discovered global configuration friends and friend applications that cannot be reached.
|
Constructor and Description |
---|
GetGlobalConfigurationFriend(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.
|
Modifier and Type | Method and Description |
---|---|
Optional<Friend> |
call()
Returns the Jazz Global Configuration application registered as a friend of a specific OSLC application, if any.
|
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. |
public GetGlobalConfigurationFriend(OslcClient client, URI rootServicesLocation)
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.public GetGlobalConfigurationFriend(FriendProvider friendProvider)
friendProvider
- a provider of friends.public Optional<Friend> call()
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.public GetGlobalConfigurationFriend.Result getAll()
Result
instance that gives access to all Jazz Global Configuration applications registered as friends,
as well as friend applications that couldn't be reached.Result
instance.