SEBSERV-417 fixed broken build
This commit is contained in:
parent
fc7ac4c4e0
commit
7ec942e264
1 changed files with 9 additions and 12 deletions
|
@ -53,7 +53,6 @@ public class LmsAPIServiceImpl implements LmsAPIService {
|
||||||
private final ClientCredentialService clientCredentialService;
|
private final ClientCredentialService clientCredentialService;
|
||||||
private final QuizLookupService quizLookupService;
|
private final QuizLookupService quizLookupService;
|
||||||
private final EnumMap<LmsType, LmsAPITemplateFactory> templateFactories;
|
private final EnumMap<LmsType, LmsAPITemplateFactory> templateFactories;
|
||||||
private final FullLmsIntegrationService fullLmsIntegrationService;
|
|
||||||
|
|
||||||
private final Map<CacheKey, LmsAPITemplate> cache = new ConcurrentHashMap<>();
|
private final Map<CacheKey, LmsAPITemplate> cache = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
|
@ -62,14 +61,12 @@ public class LmsAPIServiceImpl implements LmsAPIService {
|
||||||
final LmsSetupDAO lmsSetupDAO,
|
final LmsSetupDAO lmsSetupDAO,
|
||||||
final ClientCredentialService clientCredentialService,
|
final ClientCredentialService clientCredentialService,
|
||||||
final QuizLookupService quizLookupService,
|
final QuizLookupService quizLookupService,
|
||||||
final FullLmsIntegrationService fullLmsIntegrationService,
|
|
||||||
final Collection<LmsAPITemplateFactory> lmsAPITemplateFactories) {
|
final Collection<LmsAPITemplateFactory> lmsAPITemplateFactories) {
|
||||||
|
|
||||||
this.webserviceInfo = webserviceInfo;
|
this.webserviceInfo = webserviceInfo;
|
||||||
this.lmsSetupDAO = lmsSetupDAO;
|
this.lmsSetupDAO = lmsSetupDAO;
|
||||||
this.clientCredentialService = clientCredentialService;
|
this.clientCredentialService = clientCredentialService;
|
||||||
this.quizLookupService = quizLookupService;
|
this.quizLookupService = quizLookupService;
|
||||||
this.fullLmsIntegrationService = fullLmsIntegrationService;
|
|
||||||
|
|
||||||
final Map<LmsType, LmsAPITemplateFactory> factories = lmsAPITemplateFactories
|
final Map<LmsType, LmsAPITemplateFactory> factories = lmsAPITemplateFactories
|
||||||
.stream()
|
.stream()
|
||||||
|
@ -170,15 +167,15 @@ public class LmsAPIServiceImpl implements LmsAPIService {
|
||||||
.onError(er -> log.error("Failed to mark LMS integration inactive", er));
|
.onError(er -> log.error("Failed to mark LMS integration inactive", er));
|
||||||
return lmsSetupTestResult;
|
return lmsSetupTestResult;
|
||||||
} else {
|
} else {
|
||||||
|
// TODO
|
||||||
final Result<FullLmsIntegrationService.IntegrationData> integrationDataResult = fullLmsIntegrationService
|
// final Result<FullLmsIntegrationService.IntegrationData> integrationDataResult = fullLmsIntegrationService
|
||||||
.applyFullLmsIntegration(template.lmsSetup().id);
|
// .applyFullLmsIntegration(template.lmsSetup().id);
|
||||||
|
//
|
||||||
if (integrationDataResult.hasError()) {
|
// if (integrationDataResult.hasError()) {
|
||||||
return LmsSetupTestResult.ofFullIntegrationAPIError(
|
// return LmsSetupTestResult.ofFullIntegrationAPIError(
|
||||||
template.lmsSetup().lmsType,
|
// template.lmsSetup().lmsType,
|
||||||
"Failed to apply full LMS integration");
|
// "Failed to apply full LMS integration");
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue