2 * Copyright (C) 2017 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 java
.util
.List
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
15 import org
.springframework
.stereotype
.Service
;
16 import org
.springframework
.transaction
.annotation
.Transactional
;
18 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
19 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IRightsDao
;
20 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
28 @Transactional(readOnly
= true)
29 public class RightsServiceImpl
extends AnnotatableServiceBase
<Rights
, IRightsDao
> implements IRightsService
{
30 private static final Logger logger
= Logger
.getLogger(RightsServiceImpl
.class);
36 protected void setDao(IRightsDao dao
) {
43 public RightsServiceImpl(){
44 if (logger
.isDebugEnabled()) { logger
.debug("Load RightsService Bean"); }
48 public List
<UuidAndTitleCache
<Rights
>> getUuidAndLabelText(Integer limit
, String pattern
){
49 return dao
.getUuidAndTitleCache(limit
, pattern
);