Project

General

Profile

1
package eu.dnetlib.enabling.datasources.common;
2

    
3
import java.util.Date;
4
import java.util.List;
5
import java.util.Map;
6
import java.util.Set;
7

    
8
public interface LocalDatasourceManager<DS extends Datasource<?, ?>, API extends Api<?>> extends DatasourceManagerCommon<DS, API> {
9

    
10
	Set<String> listManagedDatasourceIds() throws DsmRuntimeException;
11

    
12
	List<SimpleDatasource> searchDatasourcesByType(String type) throws DsmException;
13

    
14
	List<? extends SearchApisEntry> searchApis(String field, Object value) throws DsmException;
15

    
16
	List<? extends BrowsableField> listBrowsableFields() throws DsmException;
17

    
18
	List<? extends BrowseTerm> browseField(String field) throws DsmException;
19

    
20
	void setActive(String dsId, String apiId, boolean active) throws DsmException;
21

    
22
	boolean isActive(String dsId, String apiId) throws DsmException;
23

    
24
	void setLastCollectionInfo(String dsId, String apiId, String mdId, Integer size, Date date) throws DsmException;
25

    
26
	void setLastAggregationInfo(String dsId, String apiId, String mdId, Integer size, Date date) throws DsmException;
27

    
28
	void setLastDownloadInfo(String dsId, String apiId, String objId, Integer size, Date date) throws DsmException;
29

    
30
	void updateApiDetails(String dsId, String apiId, String metadataIdentifierPath, String baseUrl, Map<String, String> params) throws DsmException;
31

    
32
	boolean isRemovable(String dsId, String apiId) throws DsmException;
33

    
34
	void regenerateProfiles() throws DsmException;
35

    
36
}
(17-17/20)