Revision 57741
Added by Ioannis Diplas over 4 years ago
BrokerServiceImpl.java | ||
---|---|---|
3 | 3 |
import com.fasterxml.jackson.databind.JsonNode; |
4 | 4 |
import com.fasterxml.jackson.databind.ObjectMapper; |
5 | 5 |
import eu.dnetlib.domain.data.Repository; |
6 |
import eu.dnetlib.repo.manager.shared.BrokerException;
|
|
7 |
import eu.dnetlib.repo.manager.shared.Term;
|
|
8 |
import eu.dnetlib.repo.manager.shared.Tuple;
|
|
9 |
import eu.dnetlib.repo.manager.shared.broker.*;
|
|
6 |
import eu.dnetlib.repo.manager.domain.BrokerException;
|
|
7 |
import eu.dnetlib.repo.manager.domain.Term;
|
|
8 |
import eu.dnetlib.repo.manager.domain.Tuple;
|
|
9 |
import eu.dnetlib.repo.manager.domain.broker.*;
|
|
10 | 10 |
import org.json.JSONException; |
11 | 11 |
import org.springframework.beans.factory.annotation.Autowired; |
12 | 12 |
import org.springframework.beans.factory.annotation.Value; |
... | ... | |
78 | 78 |
|
79 | 79 |
@Override |
80 | 80 |
public DatasourcesBroker getDatasourcesOfUser(String user,String includeShared,String includeByOthers) throws JSONException { |
81 |
|
|
81 |
long start = System.currentTimeMillis(); |
|
82 | 82 |
DatasourcesBroker ret = new DatasourcesBroker(); |
83 | 83 |
try { |
84 | 84 |
ret.setDatasourcesOfUser(getDatasourcesOfUserType(getRepositoriesOfUser(user))); |
... | ... | |
95 | 95 |
LOGGER.debug("Exception on getDatasourcesOfUser" , e); |
96 | 96 |
emailUtils.reportException(e); |
97 | 97 |
} |
98 |
|
|
98 |
long end = System.currentTimeMillis(); |
|
99 |
System.out.println("Getting datasources of user in " + (end-start)+"ms"); |
|
99 | 100 |
return ret; |
100 | 101 |
} |
101 | 102 |
|
Also available in: Unified diff
Updating interfaces to not include IsSerializable