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

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

    
9
	List<SimpleDatasource> searchDatasourcesByType(String type) throws DsmException;
10

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

    
13
	List<? extends BrowsableField> listBrowsableFields() throws DsmException;
14

    
15
	List<? extends BrowseTerm> browseField(String field) throws DsmException;
16

    
17
	void setActive(String dsId, String apiId, boolean active) throws DsmException;
18

    
19
	boolean isActive(String dsId, String apiId) throws DsmException;
20

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

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

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

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

    
29
	boolean isRemovable(String dsId, String apiId) throws DsmException;
30

    
31
}
(17-17/20)