public interface IPreferenceService
Modifier and Type | Method and Description |
---|---|
long |
count()
Return the number of all existing cdm preferences
|
CdmPreference |
find(CdmBase taxonNodeRelatedCdmBase,
java.lang.String predicate)
Returns the best matching preference that matches the given
predicate and the filter.
|
CdmPreference |
find(CdmPreference.PrefKey key)
Retrieve the best matching value for the given preference key.
|
CdmPreference |
find(TaxonNode taxonNode,
IPreferencePredicate<?> predicate) |
java.lang.Object |
find(TaxonNode taxonNode,
java.lang.String predicate)
Returns the best matching preference that matches the given
predicate and the taxon node filter.
|
CdmPreference |
findDatabase(IPreferencePredicate<?> predicate)
Retrieve the database wide preference for the given predicate.
|
CdmPreference |
findExact(CdmPreference.PrefKey key)
Retrieve the preference that has a key exactly matching the given key.
|
CdmPreference |
findTaxEditor(IPreferencePredicate<?> predicate)
Retrieve the TaxEditor wide preference for the given predicate.
|
CdmPreference |
findVaadin(IPreferencePredicate<?> predicate)
Retrieve the vaadin wide preference for the given predicate.
|
java.util.List<CdmPreference> |
list()
Returns all CDM preferences.
|
java.util.List<CdmPreference> |
list(IPreferencePredicate<?> predicate)
Returns all matching preferences for the given predicate.
|
java.util.List<CdmPreference> |
list(java.lang.String subject,
java.lang.String predicate)
Retrieve all matching values for the given preference key.
|
void |
remove(CdmPreference.PrefKey preference) |
void |
set(CdmPreference preference)
Write the value for the preference's key
|
long count()
java.util.List<CdmPreference> list()
java.util.List<CdmPreference> list(IPreferencePredicate<?> predicate)
#find(PrefKey)
to find the best matching preference
or use PreferenceResolver
to resolve the best matching
preference on client side.predicate
- java.util.List<CdmPreference> list(java.lang.String subject, java.lang.String predicate)
subject
- the PreferenceSubject
represented as stringpredicate
- the predicate to retrieveCdmPreference find(CdmPreference.PrefKey key)
key
- the key defining the data to retrieveCdmPreference findExact(CdmPreference.PrefKey key)
key
- CdmPreference findDatabase(IPreferencePredicate<?> predicate)
predicate
- CdmPreference findVaadin(IPreferencePredicate<?> predicate)
predicate
- CdmPreference findTaxEditor(IPreferencePredicate<?> predicate)
predicate
- java.lang.Object find(TaxonNode taxonNode, java.lang.String predicate)
taxonNode
- predicate
- CdmPreference find(TaxonNode taxonNode, IPreferencePredicate<?> predicate)
CdmPreference find(CdmBase taxonNodeRelatedCdmBase, java.lang.String predicate)
taxonNode
- predicate
- void set(CdmPreference preference)
preference
- void remove(CdmPreference.PrefKey preference)
preference
- Copyright © 2007-2020 EDIT. All Rights Reserved.