Project

General

Profile

1
package gr.uoa.di.validator.database;
2

    
3

    
4
import java.util.List;
5
import java.util.Map;
6
import java.util.TreeMap;
7

    
8
import eu.dnetlib.domain.data.Repository;
9
import eu.dnetlib.domain.data.RepositoryInterface;
10

    
11
public interface OpenDoarRepositoryFactory {
12

    
13
	public Repository getRepository(String officialName, String id) throws Exception;
14
	
15
	public String storeRepository(Repository repo, String datatype) throws Exception;
16
	
17
	public String editRepository(Repository repo, String officialNameOld, String idOld, String datatype) throws Exception;
18

    
19
	public TreeMap<String, List<Map<String, String>>> getRepositoriesByCountry(String collectedFrom) throws Exception;
20
	
21
	public boolean updateRepositoryInterfaceCompliance(String officialName, String datasourceId, String interfaceId,  String desiredCompliance, String set, String baseUrl, String oldId) throws Exception;
22

    
23
//	public void adminSetRepositoryCompliant(String officialName, String datasourceId, List<String> compList) throws Exception;
24

    
25
	public List<Repository> getRepos(String user_mail)  throws Exception ;
26

    
27
	public boolean repoIsCompliant(String officialName)throws Exception ;
28

    
29
	public Map<String, String> getRepoCompatibility(String officialName, String datasourceId) throws Exception;
30

    
31
	public List<String> getUrlsOfRepos(String user_mail) throws Exception;
32
	
33
	public boolean insertPubFileInterface(String dsId, RepositoryInterface iFace) throws Exception;
34
	
35
	public boolean updatePubFileInterface(String dsId, RepositoryInterface iFace) throws Exception;
36

    
37
//	public TreeMap<String, List<Map<String, String>>> getRepositoriesByCountryFromCache(
38
//			String string) throws Exception;
39

    
40
	public List<Repository> getRepositories(String collectedFrom) throws Exception;
41

    
42
	public void getRepositoryStats(Repository repo) throws Exception;
43

    
44
	public String updateRepositoryInformation(Repository repo) throws Exception;
45
	
46
	public String deleteRepositoryInterfaces(String dsId, List<RepositoryInterface> interfaces) throws Exception;
47

    
48
	public List<RepositoryInterface> updateRepositoryInterfaces(String dsId,
49
			List<RepositoryInterface> interfaces,
50
			List<RepositoryInterface> interfacesOld, String datatype) throws Exception;
51
	
52
	public List<RepositoryInterface> insertRepositoryInterfaces(String dsId,
53
			List<RepositoryInterface> interfaces, String datatype) throws Exception;
54
	
55
	public boolean unregisterRepository(Repository repo) throws Exception;
56

    
57

    
58
}
(1-1/3)