forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-33869 Assignment migration updates (sakaiproject#5250)
- Loading branch information
Showing
36 changed files
with
289 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.../impl/src/java/org/sakaiproject/assignment/impl/conversion/Assignment12ConversionJob.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.sakaiproject.assignment.impl.conversion; | ||
|
||
import lombok.Setter; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.quartz.DisallowConcurrentExecution; | ||
import org.quartz.Job; | ||
import org.quartz.JobExecutionContext; | ||
import org.quartz.JobExecutionException; | ||
import org.sakaiproject.assignment.api.conversion.AssignmentConversionService; | ||
|
||
@Slf4j | ||
@DisallowConcurrentExecution | ||
public class Assignment12ConversionJob implements Job { | ||
|
||
@Setter | ||
private AssignmentConversionService assignmentConversionService; | ||
|
||
@Override | ||
public void execute(JobExecutionContext context) throws JobExecutionException { | ||
log.info("<===== Assignment Conversion Job start =====>"); | ||
|
||
// never run as a recovery | ||
if (context.isRecovering()) { | ||
log.warn("<===== Assignment Conversion Job doesn't support recovery, job will terminate... =====>"); | ||
} else { | ||
assignmentConversionService.runConversion(); | ||
} | ||
|
||
log.info("<===== Assignment Conversion Job end =====>"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ersion/impl/AssignmentDataProvider11.java → .../conversion/AssignmentDataProvider11.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.