import eu.etaxonomy.cdm.api.application.ICdmRepository;
import eu.etaxonomy.cdm.api.service.ITermService;
-import eu.etaxonomy.cdm.model.term.DefinedTermBase;
-import eu.etaxonomy.cdm.model.term.TermType;
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
import eu.etaxonomy.cdm.model.metadata.CdmPreference.PrefKey;
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
+import eu.etaxonomy.cdm.model.metadata.PreferenceResolver;
import eu.etaxonomy.cdm.model.metadata.PreferenceSubject;
+import eu.etaxonomy.cdm.model.term.DefinedTermBase;
+import eu.etaxonomy.cdm.model.term.TermType;
import eu.etaxonomy.taxeditor.store.CdmStore;
import eu.etaxonomy.taxeditor.store.TermStore;
private final static Logger logger = Logger.getLogger(CdmPreferenceCache.class);
+ PreferenceResolver resolver = new PreferenceResolver();
+
public static CdmPreferenceCache instance(){
if(instance == null){
instance = new CdmPreferenceCache();
}
}
+ private CdmPreference findBestMatching(PrefKey key) {
+
+ return resolver.resolve(new ArrayList(this.preferenceCache.values()), key);
+
+ }
+
}