Class JobConfigService

java.lang.Object
com.sodius.oslc.server.core.services.JobConfigService

@Path("/job") public class JobConfigService extends Object
A service to retrieve jobs and change their schedule, if editable.
Since:
3.11.0
  • Constructor Details

    • JobConfigService

      public JobConfigService()
  • Method Details

    • getConfigs

      @GET @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getConfigs()
      Responds the list of jobs managed by this service.
      Returns:
      a response with a collection of JobConfig resources
    • getConfig

      @GET @Path("{id}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getConfig(@PathParam("id") String id)
      Responds the job corresponding to the given id.
      Parameters:
      id - the identifier of the job
      Returns:
      a response with a JobConfig resource
    • updateConfig

      @PUT @Path("{id}") @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 updateConfig(@PathParam("id") String id)
      Changes the configuration of given job. The request payload must contain a JobConfig resource. Only the schedule part of the resource can be updated with this service.
      Parameters:
      id - the identifier of the job to update
      Returns:
      a response with the new JobConfig resource