1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.remote.controller;
|
11
|
|
12
|
import eu.etaxonomy.cdm.api.service.IService;
|
13
|
import eu.etaxonomy.cdm.api.service.pager.Pager;
|
14
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
15
|
import eu.etaxonomy.cdm.persistence.dto.TermDto;
|
16
|
import eu.etaxonomy.cdm.remote.l10n.TermRepresentation_L10n;
|
17
|
|
18
|
/**
|
19
|
* @author a.kohlbecker
|
20
|
* @date 24.03.2009
|
21
|
*
|
22
|
* @param <T>
|
23
|
* @param <SERVICE>
|
24
|
*/
|
25
|
public abstract class AbstractListController<T extends CdmBase, SERVICE extends IService<T>> extends AbstractController<T, SERVICE> {
|
26
|
|
27
|
/**
|
28
|
* @param pager
|
29
|
*/
|
30
|
protected static void localizeTerms(Pager<TermDto> pager) {
|
31
|
for(TermDto termDto: pager.getRecords()){
|
32
|
termDto.localize(new TermRepresentation_L10n());
|
33
|
}
|
34
|
|
35
|
}
|
36
|
|
37
|
|
38
|
}
|