Revision 69e00fde
Added by Andreas Müller almost 8 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/common/IPreferenceDao.java | ||
---|---|---|
5 | 5 |
* |
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 |
*/
|
|
8 |
*/ |
|
9 | 9 |
package eu.etaxonomy.cdm.persistence.dao.common; |
10 | 10 |
|
11 |
import java.util.List; |
|
12 |
|
|
11 | 13 |
import eu.etaxonomy.cdm.model.metadata.CdmPreference; |
14 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
12 | 15 |
|
13 | 16 |
/** |
14 | 17 |
* @author a.mueller |
... | ... | |
35 | 38 |
*/ |
36 | 39 |
public int count(); |
37 | 40 |
|
41 |
/** |
|
42 |
* @return |
|
43 |
*/ |
|
44 |
List<CdmPreference> list(); |
|
45 |
|
|
46 |
/** |
|
47 |
* Retrieves the best matching CdmPreference for the given |
|
48 |
* taxon node and the given predicate |
|
49 |
* @param taxonNode |
|
50 |
* @param predicate |
|
51 |
* @return the CdmPreference |
|
52 |
*/ |
|
53 |
CdmPreference find(TaxonNode taxonNode, String predicate); |
|
54 |
|
|
55 |
|
|
38 | 56 |
} |
Also available in: Unified diff
Further develop the CDM preferences #3958