Class ConsumerService

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

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

    • ConsumerService

      public ConsumerService()
  • Method Details

    • getConsumers

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

      @GET @Path("state") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getConsumersState()
    • createConsumer

      @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 createConsumer()
    • getConsumer

      @GET @Path("{consumerId}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getConsumer(@PathParam("consumerId") String consumerId)
    • updateConsumer

      @PUT @Path("{consumerId}") @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 updateConsumer(@PathParam("consumerId") String consumerId)
    • deleteConsumer

      @DELETE @Path("{consumerId}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response deleteConsumer(@PathParam("consumerId") String consumerId)