Project

General

Profile

Download (1.04 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * Copyright (C) 2007 EDIT
3
 * European Distributed Institute of Taxonomy
4
 * http://www.e-taxonomy.eu
5
 *
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.
8
 */
9
package eu.etaxonomy.cdm.remote.controller;
10

    
11
import eu.etaxonomy.cdm.api.service.IService;
12
import eu.etaxonomy.cdm.api.service.l10n.TermRepresentation_L10n;
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

    
17
/**
18
 * @author a.kohlbecker
19
 * @since 24.03.2009
20
 *
21
 * @param <T>
22
 * @param <SERVICE>
23
 */
24
public abstract class AbstractListController<T extends CdmBase, SERVICE extends IService<T>> extends AbstractController<T, SERVICE> {
25

    
26
    /**
27
     * @param pager
28
     */
29
    protected static void localizeTerms(Pager<TermDto> pager) {
30
       for(TermDto termDto:  pager.getRecords()){
31
           termDto.localize(new TermRepresentation_L10n());
32
       }
33

    
34
    }
35

    
36

    
37
}
(4-4/76)