Class FriendService
java.lang.Object
com.sodius.oslc.server.oauth.services.FriendService
Manages the edition of OAuth friends by an administrator.
- Since:
- 1.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteFriend(String friendId) getFriendRootServices(URI rootservicesUrl) getFriendState(String friendId) Allows to know if a Friend is available or if there is a problem contacting it.Gets all Jazz Global Configuration applications registered as friends, as well as friend applications that couldn't be reached.updateFriend(String friendId)
-
Constructor Details
-
FriendService
public FriendService()
-
-
Method Details
-
getFriends
-
createFriend
-
getFriend
-
getFriendState
@GET @Path("{friendId}/state") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getFriendState(@PathParam("friendId") String friendId) Allows to know if a Friend is available or if there is a problem contacting it.- Parameters:
friendId- identifier of the friend we want to retrieve.- Returns:
- a Friend with its state.
- Since:
- 2.0
-
updateFriend
@PUT @Path("{friendId}") @Consumes({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response updateFriend(@PathParam("friendId") String friendId) -
deleteFriend
-
getGCFriends
@GET @Path("gc") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getGCFriends()Gets all Jazz Global Configuration applications registered as friends, as well as friend applications that couldn't be reached.- Returns:
- the GC friends
- Since:
- 2.1.0
-
getFriendRootServices
-