1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2012 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.api.service.search;
|
11
|
|
12
|
import java.util.Collection;
|
13
|
import java.util.HashMap;
|
14
|
import java.util.Map;
|
15
|
|
16
|
import org.apache.lucene.document.Document;
|
17
|
import org.hibernate.search.ProjectionConstants;
|
18
|
|
19
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
20
|
|
21
|
/**
|
22
|
* TODO class description
|
23
|
*
|
24
|
* @author Andreas Kohlbecker
|
25
|
* @date Jan 6, 2012
|
26
|
*
|
27
|
*/
|
28
|
public class SearchResult<T extends CdmBase> extends DocumentSearchResult {
|
29
|
|
30
|
private T entity;
|
31
|
|
32
|
public T getEntity() {
|
33
|
return entity;
|
34
|
}
|
35
|
|
36
|
public void setEntity(T entity) {
|
37
|
this.entity = entity;
|
38
|
}
|
39
|
|
40
|
public SearchResult() {
|
41
|
}
|
42
|
|
43
|
}
|