2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.service
;
11 import eu
.etaxonomy
.cdm
.model
.metadata
.CdmPreference
;
17 public interface IPreferenceService
{
20 * Retrieve the best matching value for the given preference key.
24 public CdmPreference
get(CdmPreference
.PrefKey key
);
27 * Write the value for the preference's key
30 public void set(CdmPreference preference
);
33 * Return the number of all existing cdm preferences