3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.cdm
.api
.service
;
13 import java
.util
.ArrayList
;
14 import java
.util
.List
;
16 import org
.apache
.log4j
.Logger
;
17 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
18 import org
.springframework
.stereotype
.Service
;
19 import org
.springframework
.transaction
.annotation
.Transactional
;
21 import eu
.etaxonomy
.cdm
.model
.metadata
.CdmPreference
;
22 import eu
.etaxonomy
.cdm
.model
.metadata
.CdmPreference
.PrefKey
;
23 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IPreferenceDao
;
30 @Transactional(readOnly
= true)
31 public class PreferenceServiceImpl
implements IPreferenceService
{
32 @SuppressWarnings("unused")
33 private static final Logger logger
= Logger
.getLogger(PreferenceServiceImpl
.class);
36 private IPreferenceDao dao
;
39 public CdmPreference
get(PrefKey key
) {
40 List
<PrefKey
> keys
= new ArrayList
<CdmPreference
.PrefKey
>(){};
48 public void set(CdmPreference preference
) {