Revision 61702
Added by Antonis Lempesis over 2 years ago
RepositoryServiceImpl.java | ||
---|---|---|
19 | 19 |
import eu.dnetlib.repo.manager.utils.Converter; |
20 | 20 |
import gr.uoa.di.driver.enabling.vocabulary.VocabularyLoader; |
21 | 21 |
import org.apache.commons.codec.digest.DigestUtils; |
22 |
import org.apache.http.entity.ContentType; |
|
23 | 22 |
import org.apache.log4j.Logger; |
24 | 23 |
import org.json.JSONArray; |
25 | 24 |
import org.json.JSONException; |
... | ... | |
34 | 33 |
import org.springframework.security.core.Authentication; |
35 | 34 |
import org.springframework.security.core.context.SecurityContextHolder; |
36 | 35 |
import org.springframework.stereotype.Service; |
37 |
import org.springframework.util.MimeType; |
|
38 | 36 |
import org.springframework.web.client.HttpClientErrorException; |
39 | 37 |
import org.springframework.web.client.RestTemplate; |
40 | 38 |
import org.springframework.web.util.UriComponents; |
... | ... | |
62 | 60 |
private final EmailUtils emailUtils; |
63 | 61 |
private final ValidatorService validatorService; |
64 | 62 |
|
65 |
@Value("${api.baseAddress}")
|
|
63 |
@Value("${services.provide.clients.dsm}")
|
|
66 | 64 |
private String baseAddress; |
67 | 65 |
|
68 |
@Value("${services.repo-manager.adminEmail}")
|
|
66 |
@Value("${services.provide.adminEmail}")
|
|
69 | 67 |
private String adminEmail; |
70 | 68 |
|
71 |
@Value("${services.repomanager.usageStatisticsDiagramsBaseURL}")
|
|
69 |
@Value("${services.provide.usageStatisticsDiagramsBaseURL}")
|
|
72 | 70 |
private String usageStatisticsDiagramsBaseURL; |
73 | 71 |
|
74 |
@Value("${services.repomanager.usageStatisticsNumbersBaseURL}")
|
|
72 |
@Value("${services.provide.usageStatisticsNumbersBaseURL}")
|
|
75 | 73 |
private String usageStatisticsNumbersBaseURL; |
76 | 74 |
|
77 | 75 |
|
Also available in: Unified diff
cleaned up and made properties consistent