Project

General

Profile

« Previous | Next » 

Revision 57741

Updating interfaces to not include IsSerializable

View differences:

RepositoryServiceImpl.java
1 1
package eu.dnetlib.repo.manager.service;
2 2

  
3
import com.fasterxml.jackson.core.JsonProcessingException;
4 3
import com.fasterxml.jackson.databind.ObjectMapper;
5
import com.fasterxml.jackson.databind.SerializationFeature;
6 4
import eu.dnetlib.api.functionality.ValidatorServiceException;
7 5
import eu.dnetlib.domain.data.Repository;
8 6
import eu.dnetlib.domain.data.RepositoryInterface;
9 7
import eu.dnetlib.domain.enabling.Vocabulary;
10 8
import eu.dnetlib.domain.functionality.validator.JobForValidation;
11
import eu.dnetlib.repo.manager.domain.RepositorySnippet;
12
import eu.dnetlib.repo.manager.domain.RequestFilter;
9
import eu.dnetlib.repo.manager.domain.*;
13 10
import eu.dnetlib.repo.manager.exception.ResourceNotFoundException;
14
import eu.dnetlib.repo.manager.shared.*;
15 11
import eu.dnetlib.repo.manager.utils.Converter;
16 12
import gr.uoa.di.driver.enabling.vocabulary.VocabularyLoader;
17
import gr.uoa.di.driver.xml.repository.INTERFACE;
18 13
import org.apache.commons.codec.digest.DigestUtils;
19 14
import org.apache.log4j.Logger;
20 15
import org.json.JSONArray;
......
28 23
import org.springframework.security.core.Authentication;
29 24
import org.springframework.security.core.context.SecurityContextHolder;
30 25
import org.springframework.stereotype.Service;
31
import org.springframework.web.bind.annotation.PathVariable;
32
import org.springframework.web.bind.annotation.RequestBody;
33
import org.springframework.web.bind.annotation.RequestParam;
34 26
import org.springframework.web.client.RestClientException;
35 27
import org.springframework.web.client.RestTemplate;
36 28
import org.springframework.web.util.UriComponents;
......
259 251
            System.out.println("Converting json to repo list finished in " + (end-start)+"ms");
260 252
            start=System.currentTimeMillis();
261 253
            for (Repository r : repos)
262
                this.updateRepositoryInfo(r);
254
                r.setPiwikInfo(piWikService.getPiwikSiteForRepo(r.getId()));
255

  
263 256
            end=System.currentTimeMillis();
264 257
            System.out.println("Updating "+repos.size()+" repository infos in " + (end-start)+"ms");
265 258
            return repos;

Also available in: Unified diff