Revision 35379
Added by Nikon Gasparis about 9 years ago
modules/uoa-validator-service/trunk/src/main/java/eu/dnetlib/validator/service/impls/listeners/RegistrationListener.java | ||
---|---|---|
108 | 108 |
else |
109 | 109 |
emailer.sendMail(this.adminEmails, getMsgSubject() + "- Test Results [" + this.officialName + "]", "Congratulations!! Your " + repoType + " has successfully passed the test to become compliant with " + msgVersion + ".", false, null); |
110 | 110 |
|
111 |
//TODO |
|
112 | 111 |
this.updateRepositoryInterfaceCompliance(officialName, datasourceId, interfaceId, desiredCompLevel, validationSet, baseUrl, interfaceIdOld); |
113 |
// this.getOpenAIREValidator().deleteJobForRegistration(activationId); |
|
114 | 112 |
|
115 | 113 |
// mail to user informing him of the success |
116 | 114 |
List<String> rec = new ArrayList<String>(); |
... | ... | |
157 | 155 |
emailer.sendMail(rec, getMsgSubject() + "- Results [" + this.officialName + "]", "The compatibility test of your " + repoType + " on repo: "+baseUrl+" and set: " + validationSet + " was unsuccessful and the join process has failed. \n" + "Your Scores: " + score_content + "/100 and " + score_usage + "/100 . Score required to pass: >50 \n" +" Please review the results and correct any errors: \n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId + "\n", false, null); |
158 | 156 |
emailer.sendMail(new ArrayList<String>(), getMsgSubject() + "- Results (failure) [" + this.officialName + "]", "The compatibility test on "+officialName+" was unsuccessful and the join process has failed. "+ "\n\nOfficial Name: " + this.officialName + "\n\nBase URL: " + this.baseUrl + "\n\nValidation Set: " + this.validationSet + "\n\nGuidelines: " + msgGuidelines + "\n\nReview the validation results here: \n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId + "\n", true, null); |
159 | 157 |
|
160 |
// openDoarRepositoryFactory.updateRepositoryInterfaceCompliance(officialName, datasourceId, interfaceId, "notCompatible", validationSet, baseUrl, interfaceIdOld); |
|
161 |
// |
|
162 |
// this.getOpenAIREValidator().deleteJobForRegistration(activationId); |
|
158 |
this.updateRepositoryInterfaceCompliance(officialName, datasourceId, interfaceId, "notCompatible", validationSet, baseUrl, interfaceIdOld); |
|
163 | 159 |
|
164 | 160 |
} catch (Exception e) { |
165 | 161 |
logger.error("", e); |
Also available in: Unified diff
fixed a bug where datasource's compatibility wasn't updated after a failed registration test