Class JobConfigService
java.lang.Object
com.sodius.oslc.server.core.services.JobConfigService
A service to retrieve jobs and change their schedule, if editable.
- Since:
- 3.11.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResponds the job corresponding to the given id.Responds the list of jobs managed by this service.updateConfig(String id) Changes the configuration of given job.
-
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
JobConfigresources
-
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
JobConfigresource
-
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 aJobConfigresource. Only theschedulepart of the resource can be updated with this service.- Parameters:
id- the identifier of the job to update- Returns:
- a response with the new
JobConfigresource
-