176 |
176 |
int page = 1;
|
177 |
177 |
String size = "10";
|
178 |
178 |
List<Repository> resultSet = repositoryApi.getRepositoriesOfUser(userEmail,String.valueOf(page),size);
|
179 |
|
LOGGER.debug("Resultset size -> " + resultSet.size() );
|
180 |
179 |
while(resultSet.size() > 0 ){
|
181 |
|
LOGGER.debug("Resultset size -> " + resultSet.size() );
|
182 |
180 |
retDatasources.getDatasourcesOfUser().addAll(resultSet);
|
183 |
181 |
page++;
|
184 |
182 |
resultSet = repositoryApi.getRepositoriesOfUser(userEmail,String.valueOf(page),size);
|
... | ... | |
272 |
270 |
/*if (e instanceof RepositoryServiceException) {
|
273 |
271 |
throw (RepositoryServiceException) e;
|
274 |
272 |
} else {*/
|
275 |
|
emailUtils.reportException(e);
|
|
273 |
// emailUtils.reportException(e);
|
276 |
274 |
throw new RepositoryServiceException("login.generalError", RepositoryServiceException.ErrorCode.GENERAL_ERROR);
|
277 |
275 |
// }
|
278 |
276 |
}
|
... | ... | |
312 |
310 |
|
313 |
311 |
@Override
|
314 |
312 |
public Map<String, String> getDatasourceClasses(String mode) throws RepositoryServiceException {
|
315 |
|
try {
|
|
313 |
return repositoryApi.getDatasourceClasses(mode);
|
|
314 |
/* try {
|
316 |
315 |
LOGGER.debug("Getting datasource classes for mode: " + mode);
|
|
316 |
|
317 |
317 |
Map<String, String> retMap = new HashMap<String, String>();
|
318 |
318 |
|
319 |
319 |
for (Map.Entry<String, String> entry : this.getVocabulary("dnet:datasource_typologies").getAsMap().entrySet()) {
|
... | ... | |
337 |
337 |
LOGGER.error("Error while getting datasource classes for mode: " + mode, e);
|
338 |
338 |
emailUtils.reportException(e);
|
339 |
339 |
throw new RepositoryServiceException("login.generalError", RepositoryServiceException.ErrorCode.GENERAL_ERROR);
|
340 |
|
}
|
|
340 |
}*/
|
341 |
341 |
}
|
342 |
342 |
|
343 |
343 |
@Override
|
344 |
344 |
public Map<String, String> getCompatibilityClasses(String mode) throws RepositoryServiceException {
|
345 |
|
try {
|
|
345 |
return repositoryApi.getCompatibilityClasses(mode);
|
|
346 |
/* try {
|
346 |
347 |
LOGGER.debug("Getting compatibility classes for mode: " + mode);
|
347 |
348 |
Map<String, String> retMap = new HashMap<String, String>();
|
348 |
349 |
|
... | ... | |
372 |
373 |
LOGGER.error("Error while getting compatibility classes for mode: " + mode, e);
|
373 |
374 |
emailUtils.reportException(e);
|
374 |
375 |
throw new RepositoryServiceException("login.generalError", RepositoryServiceException.ErrorCode.GENERAL_ERROR);
|
375 |
|
}
|
|
376 |
}*/
|
376 |
377 |
}
|
377 |
378 |
|
378 |
379 |
@Override
|