Project

General

Profile

Download (2.19 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.vaadin.view.registration;
10

    
11
import java.util.HashSet;
12
import java.util.Set;
13

    
14
import eu.etaxonomy.cdm.api.service.dto.TypeDesignationStatusFilter;
15
import eu.etaxonomy.cdm.model.name.RegistrationStatus;
16
import eu.etaxonomy.cdm.model.permission.User;
17

    
18
class RegistrationSearchFilter {
19
    private String identifierPattern;
20
    private String namePattern;
21
    private String referencePattern;
22
    private User submitter;
23
    private Set<TypeDesignationStatusFilter> typeStatus = new HashSet<>();
24
    private Set<RegistrationStatus> registrationStatus = new HashSet<>();
25

    
26
    public String getIdentifierPattern() {
27
        return identifierPattern;
28
    }
29
    public void setIdentifierPattern(String identifierPattern) {
30
        this.identifierPattern = identifierPattern;
31
    }
32
    public String getNamePattern() {
33
        return namePattern;
34
    }
35
    public void setNamePattern(String namePattern) {
36
        this.namePattern = namePattern;
37
    }
38
    public String getReferencePattern() {
39
        return referencePattern;
40
    }
41
    public void setReferencePattern(String referencePattern) {
42
        this.referencePattern = referencePattern;
43
    }
44
    public User getSubmitter() {
45
        return submitter;
46
    }
47
    public void setSubmitter(User submitter) {
48
        this.submitter = submitter;
49
    }
50
    /**
51
     *
52
     * @return the TypeDesignationStatusFilter set, never NULL
53
     */
54
    public Set<TypeDesignationStatusFilter> getTypeStatus() {
55
        return typeStatus;
56
    }
57
    public void setTypeStatus(Set<TypeDesignationStatusFilter> typeStatus) {
58
        this.typeStatus = typeStatus;
59
    }
60
    public Set<RegistrationStatus> getRegistrationStatus() {
61
        return registrationStatus;
62
    }
63
    public void setRegistrationStatus(Set<RegistrationStatus> registrationStatus) {
64
        if(registrationStatus != null) {
65
            this.registrationStatus.clear();
66
            this.registrationStatus.addAll(registrationStatus);
67
        }
68
    }
69

    
70

    
71
}
(9-9/18)