| 1 | package edu.ucsb.cs156.frontiers.jobs; | |
| 2 | ||
| 3 | import edu.ucsb.cs156.frontiers.services.UpdateUserService; | |
| 4 | import edu.ucsb.cs156.jobs.services.JobContext; | |
| 5 | import edu.ucsb.cs156.jobs.services.JobContextConsumer; | |
| 6 | import lombok.Builder; | |
| 7 | ||
| 8 | @Builder | |
| 9 | public class UpdateAllJob implements JobContextConsumer { | |
| 10 | ||
| 11 | private final UpdateUserService updateUserService; | |
| 12 | ||
| 13 | // Unscoped: getScopeType()/getScopeId() default to null, same as the old getCourse() did. | |
| 14 | ||
| 15 | @Override | |
| 16 | public void accept(JobContext ctx) throws Exception { | |
| 17 |
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED |
ctx.log("Processing..."); |
| 18 |
1
1. accept : removed call to edu/ucsb/cs156/frontiers/services/UpdateUserService::attachRosterStudentsAllUsers → KILLED |
updateUserService.attachRosterStudentsAllUsers(); |
| 19 |
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED |
ctx.log("Done"); |
| 20 | } | |
| 21 | } | |
Mutations | ||
| 17 |
1.1 |
|
| 18 |
1.1 |
|
| 19 |
1.1 |