Project

General

Profile

Download (2.96 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 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.api.service.config;
10

    
11
import java.util.UUID;
12

    
13
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
14
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType;
15
import eu.etaxonomy.cdm.persistence.query.AssignmentStatus;
16

    
17
/**
18
 * @author pplitzner
19
 \* @since Apr 13, 2015
20
 *
21
 */
22
public class FindOccurrencesConfigurator extends IdentifiableServiceConfiguratorImpl<SpecimenOrObservationBase>{
23

    
24
    private static final long serialVersionUID = 1L;
25

    
26
    private SpecimenOrObservationType specimenType;
27
    private UUID associatedTaxonUuid;
28
    private UUID associatedTaxonNameUuid;
29
    private String significantIdentifier;
30
    private boolean retrieveIndirectlyAssociatedSpecimens;
31

    
32
    private AssignmentStatus assignmentStatus = AssignmentStatus.ALL_SPECIMENS;
33

    
34
    public void setAssignmentStatus(AssignmentStatus assignmentStatus) {
35
        this.assignmentStatus = assignmentStatus;
36
    }
37
    public AssignmentStatus getAssignmentStatus() {
38
        return assignmentStatus;
39
    }
40

    
41
    public String getSignificantIdentifier() {
42
        return significantIdentifier;
43
    }
44
    public void setSignificantIdentifier(String significantIdentifier) {
45
        this.significantIdentifier = significantIdentifier;
46
    }
47
    public SpecimenOrObservationType getSpecimenType() {
48
        return specimenType;
49
    }
50
    public void setSpecimenType(SpecimenOrObservationType specimenType) {
51
        this.specimenType = specimenType;
52
    }
53
    public UUID getAssociatedTaxonUuid() {
54
        return associatedTaxonUuid;
55
    }
56
    public void setAssociatedTaxonUuid(UUID associatedTaxonUuid) {
57
        this.associatedTaxonUuid = associatedTaxonUuid;
58
    }
59
    public UUID getAssociatedTaxonNameUuid() {
60
        return associatedTaxonNameUuid;
61
    }
62
    public void setAssociatedTaxonNameUuid(UUID associatedTaxonNameUuid) {
63
        this.associatedTaxonNameUuid = associatedTaxonNameUuid;
64
    }
65

    
66
    /**
67
     * if set to <code>true</code> the complete derivative hierarchy including
68
     * all parent and child derivatives is returned of the associated specimen
69
     * is retrieved
70
     *
71
     * @return the value of this flag
72
     */
73
    public boolean isRetrieveIndirectlyAssociatedSpecimens() {
74
        return retrieveIndirectlyAssociatedSpecimens;
75
    }
76
    /**
77
     * if set to <code>true</code> the complete derivative hierarchy including
78
     * all parent and child derivatives is returned of the associated specimen
79
     * is retrieved
80
     *
81
     * @param retrieveIndirectlyAssociatedSpecimens the value of this flag
82
     */
83
    public void setRetrieveIndirectlyAssociatedSpecimens(boolean retrieveIndirectlyAssociatedSpecimens) {
84
        this.retrieveIndirectlyAssociatedSpecimens = retrieveIndirectlyAssociatedSpecimens;
85
    }
86

    
87
}
(4-4/24)