Better handling of changes in the Daisy API by getting compiler errors with mismatched XSD.
This commit is contained in:
parent
deff20cfc7
commit
bf5c11e6c9
15
daisy-integration/src/main/java/se/su/dsv/scipro/daisyExternal/impl/ImporterTransactionsImpl.java
15
daisy-integration/src/main/java/se/su/dsv/scipro/daisyExternal/impl/ImporterTransactionsImpl.java
@ -94,16 +94,11 @@ public class ImporterTransactionsImpl implements ImporterTransactions {
|
||||
}
|
||||
|
||||
private DegreeType toDegreeType(ProgramType programType) {
|
||||
switch (programType) {
|
||||
case BACHELOR:
|
||||
return DegreeType.BACHELOR;
|
||||
case MAGISTER:
|
||||
return DegreeType.MAGISTER;
|
||||
case MASTER:
|
||||
return DegreeType.MASTER;
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown program type from Daisy: " + programType);
|
||||
}
|
||||
return switch (programType) {
|
||||
case BACHELOR -> DegreeType.BACHELOR;
|
||||
case MAGISTER -> DegreeType.MAGISTER;
|
||||
case MASTER -> DegreeType.MASTER;
|
||||
};
|
||||
}
|
||||
|
||||
private Optional<DegreeType> getOverrideBasedOnCourse(List<CourseRegistration> courseRegistrations) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user