| Constructor and Description |
|---|
RepoApiDirectImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
deleteRepositoryInterfaces(String dsId,
List<eu.dnetlib.domain.data.RepositoryInterface> interfaces) |
void |
deleteRepositoryInterfacesWithoutChecks(String dsId,
List<eu.dnetlib.domain.data.RepositoryInterface> interfaces,
String datatype) |
String |
editRepository(eu.dnetlib.domain.data.Repository repo,
String officialNameOld,
String idOld,
String datatype) |
String |
getListLatestUpdate(String mode) |
String |
getNextScheduledExecution(String mode) |
DataSource |
getOpenAireDataSource() |
List<Map<String,String>> |
getRegisteredReposByOthers(String string) |
Map<String,String> |
getRepoCompatibility(String officialName,
String datasourceId) |
List<eu.dnetlib.domain.data.Repository> |
getReposByIds(List<String> datasourceIds) |
List<eu.dnetlib.domain.data.Repository> |
getRepositories(String collectedFrom) |
Map<String,eu.dnetlib.domain.data.Repository> |
getRepositoriesAsMap(String collectedFrom) |
TreeMap<String,List<Map<String,String>>> |
getRepositoriesByCountry(String collectedFrom) |
List<eu.dnetlib.domain.data.Repository> |
getRepositoriesOfCountry(String collectedFrom,
String country) |
List<Map<String,String>> |
getRepositoriesOfUser(String user_mail) |
List<eu.dnetlib.domain.data.Repository> |
getRepositoriesOfUser(String user_mail,
Boolean repoAdmin) |
Map<String,List<eu.dnetlib.domain.data.Repository>> |
getRepositoriesPerCountry(String collectedFrom) |
eu.dnetlib.domain.data.Repository |
getRepository(String id) |
eu.dnetlib.domain.data.Repository |
getRepository(String officialName,
String id) |
void |
getRepositoryStats(eu.dnetlib.domain.data.Repository repo) |
List<String> |
getUrlsOfRepos(String user_mail,
Boolean repoAdmin) |
boolean |
insertPubFileInterface(String dsId,
eu.dnetlib.domain.data.RepositoryInterface iFace) |
String |
insertRepositoryInterfaces(String dsId,
List<eu.dnetlib.domain.data.RepositoryInterface> interfaces,
List<eu.dnetlib.domain.data.RepositoryInterface> interfacesOld,
String datatype,
List<eu.dnetlib.domain.data.RepositoryInterface> interfacesToRegister) |
eu.dnetlib.domain.data.RepositoryInterface |
insertRepositoryInterfaceWithoutChecks(String dsId,
eu.dnetlib.domain.data.RepositoryInterface iFace,
String datatype) |
boolean |
repoIsCompliant(String officialName) |
void |
setOpenAireDataSource(DataSource openAireDataSource) |
String |
storeRepository(eu.dnetlib.domain.data.Repository repo,
String datatype,
List<eu.dnetlib.domain.data.RepositoryInterface> interfacesToRegister) |
boolean |
unregisterRepository(eu.dnetlib.domain.data.Repository repo) |
boolean |
updatePubFileInterface(String dsId,
eu.dnetlib.domain.data.RepositoryInterface iFace) |
String |
updateRepositoryInformation(eu.dnetlib.domain.data.Repository repo) |
boolean |
updateRepositoryInterfaceCompliance(String officialName,
String datasourceId,
String interfaceId,
String compliance,
String set,
String baseUrl,
String oldId) |
String |
updateRepositoryInterfaces(String dsId,
List<eu.dnetlib.domain.data.RepositoryInterface> interfaces,
List<eu.dnetlib.domain.data.RepositoryInterface> interfacesOld,
String datatype,
List<eu.dnetlib.domain.data.RepositoryInterface> interfacesToRegister) |
eu.dnetlib.domain.data.RepositoryInterface |
updateRepositoryInterfaceWithoutChecks(String dsId,
eu.dnetlib.domain.data.RepositoryInterface iFace,
String datatype) |
public eu.dnetlib.domain.data.Repository getRepository(String id) throws Exception
getRepository in interface RepoApiExceptionpublic eu.dnetlib.domain.data.Repository getRepository(String officialName, String id) throws SQLException
getRepository in interface RepoApiSQLExceptionpublic String storeRepository(eu.dnetlib.domain.data.Repository repo, String datatype, List<eu.dnetlib.domain.data.RepositoryInterface> interfacesToRegister) throws Exception
storeRepository in interface RepoApiExceptionpublic TreeMap<String,List<Map<String,String>>> getRepositoriesByCountry(String collectedFrom) throws SQLException
getRepositoriesByCountry in interface RepoApiSQLExceptionpublic Map<String,List<eu.dnetlib.domain.data.Repository>> getRepositoriesPerCountry(String collectedFrom) throws Exception
getRepositoriesPerCountry in interface RepoApiExceptionpublic List<eu.dnetlib.domain.data.Repository> getRepositoriesOfCountry(String collectedFrom, String country) throws Exception
getRepositoriesOfCountry in interface RepoApiExceptionpublic DataSource getOpenAireDataSource()
public void setOpenAireDataSource(DataSource openAireDataSource)
public List<eu.dnetlib.domain.data.Repository> getRepositoriesOfUser(String user_mail, Boolean repoAdmin) throws SQLException
getRepositoriesOfUser in interface RepoApiSQLExceptionpublic List<String> getUrlsOfRepos(String user_mail, Boolean repoAdmin) throws SQLException
getUrlsOfRepos in interface RepoApiSQLExceptionpublic boolean insertPubFileInterface(String dsId, eu.dnetlib.domain.data.RepositoryInterface iFace) throws Exception
insertPubFileInterface in interface RepoApiExceptionpublic boolean updatePubFileInterface(String dsId, eu.dnetlib.domain.data.RepositoryInterface iFace) throws Exception
updatePubFileInterface in interface RepoApiExceptionpublic Map<String,eu.dnetlib.domain.data.Repository> getRepositoriesAsMap(String collectedFrom) throws Exception
getRepositoriesAsMap in interface RepoApiExceptionpublic List<eu.dnetlib.domain.data.Repository> getRepositories(String collectedFrom) throws Exception
getRepositories in interface RepoApiExceptionpublic String getNextScheduledExecution(String mode) throws Exception
getNextScheduledExecution in interface RepoApiExceptionpublic String getListLatestUpdate(String mode) throws Exception
getListLatestUpdate in interface RepoApiExceptionpublic List<eu.dnetlib.domain.data.Repository> getReposByIds(List<String> datasourceIds) throws Exception
getReposByIds in interface RepoApiExceptionpublic void getRepositoryStats(eu.dnetlib.domain.data.Repository repo)
throws Exception
getRepositoryStats in interface RepoApiExceptionpublic String updateRepositoryInformation(eu.dnetlib.domain.data.Repository repo) throws Exception
updateRepositoryInformation in interface RepoApiExceptionpublic String deleteRepositoryInterfaces(String dsId, List<eu.dnetlib.domain.data.RepositoryInterface> interfaces) throws Exception
deleteRepositoryInterfaces in interface RepoApiExceptionpublic void deleteRepositoryInterfacesWithoutChecks(String dsId, List<eu.dnetlib.domain.data.RepositoryInterface> interfaces, String datatype) throws Exception
deleteRepositoryInterfacesWithoutChecks in interface RepoApiExceptionpublic String updateRepositoryInterfaces(String dsId, List<eu.dnetlib.domain.data.RepositoryInterface> interfaces, List<eu.dnetlib.domain.data.RepositoryInterface> interfacesOld, String datatype, List<eu.dnetlib.domain.data.RepositoryInterface> interfacesToRegister) throws Exception
updateRepositoryInterfaces in interface RepoApiExceptionpublic eu.dnetlib.domain.data.RepositoryInterface updateRepositoryInterfaceWithoutChecks(String dsId, eu.dnetlib.domain.data.RepositoryInterface iFace, String datatype) throws Exception
updateRepositoryInterfaceWithoutChecks in interface RepoApiExceptionpublic String insertRepositoryInterfaces(String dsId, List<eu.dnetlib.domain.data.RepositoryInterface> interfaces, List<eu.dnetlib.domain.data.RepositoryInterface> interfacesOld, String datatype, List<eu.dnetlib.domain.data.RepositoryInterface> interfacesToRegister) throws Exception
insertRepositoryInterfaces in interface RepoApiExceptionpublic eu.dnetlib.domain.data.RepositoryInterface insertRepositoryInterfaceWithoutChecks(String dsId, eu.dnetlib.domain.data.RepositoryInterface iFace, String datatype) throws Exception
insertRepositoryInterfaceWithoutChecks in interface RepoApiExceptionpublic boolean unregisterRepository(eu.dnetlib.domain.data.Repository repo)
throws Exception
unregisterRepository in interface RepoApiExceptionpublic List<Map<String,String>> getRegisteredReposByOthers(String string)
getRegisteredReposByOthers in interface RepoApipublic List<Map<String,String>> getRepositoriesOfUser(String user_mail) throws Exception
getRepositoriesOfUser in interface RepoApiExceptionpublic boolean repoIsCompliant(String officialName) throws SQLException
repoIsCompliant in interface RepoApiSQLExceptionpublic Map<String,String> getRepoCompatibility(String officialName, String datasourceId) throws Exception
getRepoCompatibility in interface RepoApiExceptionpublic String editRepository(eu.dnetlib.domain.data.Repository repo, String officialNameOld, String idOld, String datatype) throws Exception
editRepository in interface RepoApiExceptionpublic boolean updateRepositoryInterfaceCompliance(String officialName, String datasourceId, String interfaceId, String compliance, String set, String baseUrl, String oldId) throws Exception
updateRepositoryInterfaceCompliance in interface RepoApiExceptionCopyright © 2019. All rights reserved.