Class JobsController

java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.JobsController

@RequestMapping("/api/jobs") @RestController public class JobsController extends ApiController
  • Constructor Details

    • JobsController

      public JobsController()
  • Method Details

    • allJobs

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @GetMapping("/all") public Iterable<Job> allJobs()
    • launchTestJob

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/testjob") public Job launchTestJob(@RequestParam Boolean fail, @RequestParam Integer sleepMs)
    • launchUpdateCourseDataJob

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/updateCourses") public Job launchUpdateCourseDataJob(@RequestParam String quarterYYYYQ, @RequestParam String subjectArea)
    • launchUpdateCourseDataWithQuarterJob

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/updateQuarterCourses") public Job launchUpdateCourseDataWithQuarterJob(@RequestParam String quarterYYYYQ)
    • launchUpdateCourseDataRangeOfQuartersJob

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/updateCoursesRangeOfQuarters") public Job launchUpdateCourseDataRangeOfQuartersJob(@RequestParam String start_quarterYYYYQ, @RequestParam String end_quarterYYYYQ)
    • launchUpdateCourseDataRangeOfQuartersSingleSubjectJob

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/updateCoursesRangeOfQuartersSingleSubject") public Job launchUpdateCourseDataRangeOfQuartersSingleSubjectJob(@RequestParam String subjectArea, @RequestParam String start_quarterYYYYQ, @RequestParam String end_quarterYYYYQ)
    • launchUploadGradeData

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/uploadGradeData") public Job launchUploadGradeData()