Project

General

Profile

1
package eu.dnetlib.data.dedup;
2

    
3
import java.util.List;
4
import java.util.Map;
5

    
6
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
7
import eu.dnetlib.functionality.modular.ui.dedup.SimilarityGroup;
8

    
9
/**
10
 * The Interface DedupUserActionsDAO.
11
 */
12
public interface DedupUserActionsDAO {
13

    
14
	/**
15
	 * Search on the Dedup index.
16
	 *
17
	 * @param type
18
	 *            the type
19
	 * @param userQuery
20
	 *            the user query
21
	 * @param actionSet
22
	 *            the action set
23
	 * @param start
24
	 *            the start
25
	 * @param rows
26
	 *            the rows
27
	 * @param fields
28
	 *            the fields
29
	 * @return the oaf result
30
	 * @throws Exception
31
	 *             the exception
32
	 */
33
	OafResult search(String type, String userQuery, String actionSet, int start, int rows, String fields) throws Exception;
34

    
35
	/**
36
	 * Search by id on the dedup index.
37
	 *
38
	 * @param actionSet
39
	 *            the action set
40
	 * @param type
41
	 *            the type
42
	 * @param objidentifier
43
	 *            the objidentifier
44
	 * @param fields
45
	 *            the fields
46
	 * @return the oaf result
47
	 * @throws Exception
48
	 *             the exception
49
	 */
50
	OafResult searchById(String actionSet, String type, String objidentifier, List<String> fields) throws Exception;
51

    
52
	/**
53
	 * Commit the changes on the dedup index.
54
	 *
55
	 * @param group
56
	 *            the group
57
	 * @return true, if successful
58
	 * @throws Exception
59
	 *             the exception
60
	 */
61
	boolean commit(SimilarityGroup group) throws Exception;
62

    
63
	/**
64
	 * List dedup configurations defined in the information system.
65
	 *
66
	 * @return the map
67
	 * @throws ISLookUpException
68
	 *             the IS look up exception
69
	 */
70
	Map<String, List<String>> listConfigurations() throws ISLookUpException;
71

    
72
}
(4-4/6)