Class FriendService

java.lang.Object
com.sodius.oslc.server.oauth.services.FriendService

@Path("/oauth/friend") public class FriendService extends Object
Manages the edition of OAuth friends by an administrator.
Since:
1.3.0
  • Constructor Details

    • FriendService

      public FriendService()
  • Method Details

    • getFriends

      @GET @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getFriends()
    • createFriend

      @POST @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 createFriend()
    • getFriend

      @GET @Path("{friendId}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getFriend(@PathParam("friendId") String friendId)
    • 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

      @DELETE @Path("{friendId}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response deleteFriend(@PathParam("friendId") String friendId)
    • 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

      @GET @Path("rootservices") @Produces({"application/json","application/ld+json"}) public Response getFriendRootServices(@QueryParam("url") URI rootservicesUrl)