Revision c226920a
Added by Fabian Reimeier almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/util/DistributionStatusQueryFactory.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
import eu.etaxonomy.cdm.api.application.CdmRepository; |
19 | 19 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
20 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
20 | 21 |
|
21 | 22 |
/** |
23 |
* The {@link QueryFactory} to generate {@link DistributionStatusQuery}. |
|
22 | 24 |
* @author freimeier |
23 | 25 |
* @since 16.11.2017 |
24 |
* |
|
25 | 26 |
*/ |
26 | 27 |
public class DistributionStatusQueryFactory implements QueryFactory{ |
27 | 28 |
CdmRepository repo; |
28 | 29 |
List<UUID> nodeUuids; |
29 | 30 |
List<NamedArea> namedAreas; |
30 | 31 |
|
32 |
/** |
|
33 |
* Creates a new DistributionStatusQueryFactory which generates {@link DistributionStatusQuery} |
|
34 |
* which return distribution status information found in the specified {@link CdmRepository} |
|
35 |
* for the {@link TaxonNode}s given by {@code nodeUuids} and the specified {@link NamedArea}s. |
|
36 |
* @param repo The repo to search for information. |
|
37 |
* @param nodeUuids The {@link UUID}s of {@link TaxonNode}s to search information for. |
|
38 |
* @param namedAreas The list of {@link NamedArea}s the distribution information should be related to. |
|
39 |
*/ |
|
31 | 40 |
public DistributionStatusQueryFactory(CdmRepository repo, List<UUID> nodeUuids, List<NamedArea> namedAreas) { |
32 | 41 |
this.repo = repo; |
33 | 42 |
this.nodeUuids = nodeUuids; |
34 | 43 |
this.namedAreas = namedAreas; |
35 | 44 |
} |
36 | 45 |
|
37 |
/* (non-Javadoc) |
|
38 |
* @see org.vaadin.addons.lazyquerycontainer.QueryFactory#constructQuery(org.vaadin.addons.lazyquerycontainer.QueryDefinition) |
|
46 |
/** |
|
47 |
* |
|
48 |
* {@inheritDoc} |
|
39 | 49 |
*/ |
40 | 50 |
@Override |
41 | 51 |
public Query constructQuery(QueryDefinition definition) { |
Also available in: Unified diff
Documentation and refactoring