Interface JobResource

All Known Implementing Classes:
JobService

@Path("jobs") public interface JobResource
Author:
Endi S. Dewata
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    Returns all jobs.
    javax.ws.rs.core.Response
    Returns a specific job.
    javax.ws.rs.core.Response
    Starts a specific job.
  • Method Details

    • findJobs

      @GET javax.ws.rs.core.Response findJobs() throws EBaseException
      Returns all jobs. If the method is executed by an admin, it will return all jobs. Otherwise, it will return all jobs owned by the user.
      Throws:
      EBaseException
    • getJob

      @GET @Path("{id}") javax.ws.rs.core.Response getJob(@PathParam("id") String id) throws EBaseException
      Returns a specific job. This method can only be executed by an admin or the job owner.
      Throws:
      EBaseException
    • startJob

      @POST @Path("{id}/start") javax.ws.rs.core.Response startJob(@PathParam("id") String id) throws EBaseException
      Starts a specific job. This method can only be executed by an admin or the job owner.
      Throws:
      EBaseException