Package edu.ucsb.cs.scaffold.controller
Class JobsController
java.lang.Object
edu.ucsb.cs.scaffold.controller.ApiController
edu.ucsb.cs.scaffold.controller.JobsController
Launch endpoints for this app's concrete jobs, plus the course-scoped jobs listing (which uses
this app's CourseSecurity rule). The generic admin endpoints (list all / paginated / logs /
delete) come from the lib-jobs library's own controller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<edu.ucsb.cs156.jobs.entities.Job> jobsByCourse(Long courseId) edu.ucsb.cs156.jobs.entities.Jobedu.ucsb.cs156.jobs.entities.Jobedu.ucsb.cs156.jobs.entities.JoblaunchSyncCourseWithPlRepoJob(Long courseId) edu.ucsb.cs156.jobs.entities.JobMethods inherited from class edu.ucsb.cs.scaffold.controller.ApiController
genericMessage, getCurrentUser, handleEntityNotFoundException, handleForbiddenException, handleIllegalArgument, handleUnsupportedOperation
-
Constructor Details
-
JobsController
public JobsController()
-
-
Method Details
-
launchUpdateAllJob
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/updateAll") public edu.ucsb.cs156.jobs.entities.Job launchUpdateAllJob() -
launchRotatePatKeysJob
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/rotatePatKeys") public edu.ucsb.cs156.jobs.entities.Job launchRotatePatKeysJob() -
launchSyncCourseWithPlRepoJob
@PreAuthorize("@CourseSecurity.hasManagePermissions(#root, #courseId)") @PostMapping("/launch/syncCourseWithPlRepo") public edu.ucsb.cs156.jobs.entities.Job launchSyncCourseWithPlRepoJob(@RequestParam Long courseId) -
launchReadPLColorsJob
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/readPLColors") public edu.ucsb.cs156.jobs.entities.Job launchReadPLColorsJob() -
jobsByCourse
-