Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2019 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.taxeditor.view.search.facet.term;
10

    
11
import java.util.ArrayList;
12
import java.util.List;
13

    
14
import eu.etaxonomy.cdm.model.common.Language;
15
import eu.etaxonomy.cdm.model.description.Feature;
16
import eu.etaxonomy.taxeditor.view.search.facet.SearchComposite;
17
import eu.etaxonomy.taxeditor.view.search.facet.SearchController;
18
import eu.etaxonomy.taxeditor.view.search.facet.SearchResult;
19

    
20
/**
21
 * @author pplitzner
22
 * @since Jan 22, 2019
23
 *
24
 */
25
public class TermSearchController extends SearchController {
26

    
27
    public TermSearchController(SearchComposite composite) {
28
        super(composite);
29
    }
30

    
31
    @Override
32
    protected List<SearchResult> searchResults(String searchString){
33
        List<SearchResult> searchResults = new ArrayList<>();
34
        searchResults.add(new TermSearchResult(Language.ABKHAZIAN()));
35
        searchResults.add(new TermSearchResult(Language.WAKASHANS()));
36
        searchResults.add(new TermSearchResult(Feature.ADDITIONAL_PUBLICATION()));
37
        return searchResults;
38
    }
39

    
40
}
(3-3/4)