Project

General

Profile

Download (4.37 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
 * Copyright (C) 2009 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

    
11

    
12
package eu.etaxonomy.cdm.api.service.config.impl;
13

    
14
import java.util.List;
15
import java.util.Set;
16

    
17
import eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator;
18
import eu.etaxonomy.cdm.api.service.config.IdentifiableServiceConfiguratorBase;
19
import eu.etaxonomy.cdm.model.location.NamedArea;
20
import eu.etaxonomy.cdm.model.reference.ReferenceBase;
21
import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;
22
import eu.etaxonomy.cdm.persistence.query.MatchMode;
23

    
24
/**
25
 * @author a.babadshanjan
26
 * @created 20.01.2009
27
 * @version 1.0
28
 */
29
public class TaxonServiceConfiguratorImpl extends IdentifiableServiceConfiguratorBase
30
implements ITaxonServiceConfigurator {
31
	
32
	private boolean doTaxa = true;
33
	private boolean doSynonyms = false;
34
	private boolean doTaxaByCommonNames = false;
35
	private boolean doNamesWithoutTaxa = false;
36
	private String searchString;
37
	private ReferenceBase sec = null;
38
	private TaxonomicTree taxonomicTree = null;
39
	private List<String> taxonPropertyPath;
40
	private List<String> synonymPropertyPath;
41
	private List<String> taxonNamePropertyPath;
42
	private List<String> commonNamePropertyPath;
43
	private Set<NamedArea> namedAreas;
44
	
45
	/**
46
	 * @return the taxonNamePropertyPath
47
	 */
48
	public List<String> getTaxonNamePropertyPath() {
49
		return taxonNamePropertyPath;
50
	}
51

    
52
	/**
53
	 * @param taxonNamePropertyPath the taxonNamePropertyPath to set
54
	 */
55
	public void setTaxonNamePropertyPath(List<String> taxonNamePropertyPath) {
56
		this.taxonNamePropertyPath = taxonNamePropertyPath;
57
	}
58

    
59
	public static TaxonServiceConfiguratorImpl NewInstance() {
60
		return new TaxonServiceConfiguratorImpl();
61
	}
62
	
63
	public boolean isDoTaxa() {
64
		return doTaxa;
65
	}
66

    
67
	public void setDoTaxa(boolean doTaxa) {
68
		this.doTaxa = doTaxa;
69
	}
70

    
71
	public boolean isDoSynonyms() {
72
		return doSynonyms;
73
	}
74

    
75
	public void setDoSynonyms(boolean doSynonyms) {
76
        this.doSynonyms = doSynonyms;
77
	}
78

    
79
	/**
80
	 * @return doTaxaByCommonNames
81
	 */
82
	public boolean isDoTaxaByCommonNames() {
83
		return doTaxaByCommonNames;
84
	}
85

    
86
	/**
87
	 * @param doTaxaByCommonNames
88
	 */
89
	public void setDoTaxaByCommonNames(boolean doTaxaByCommonNames) {
90
		this.doTaxaByCommonNames = doTaxaByCommonNames;
91
	}
92
	
93
	/**
94
	 * @return doNamesWithoutTaxa
95
	 */
96
	public boolean isDoNamesWithoutTaxa() {
97
		return doNamesWithoutTaxa;
98
	}
99

    
100
	/**
101
	 * @param doNamesWithoutTaxa
102
	 */
103
	public void setDoNamesWithoutTaxa(boolean doNamesWithoutTaxa) {
104
		this.doNamesWithoutTaxa = doNamesWithoutTaxa;
105
	}
106
	
107
	public String getSearchString() {
108
		return searchString;
109
	}
110
	
111
	public void setSearchString(String searchString) {
112
		this.searchString = searchString;
113
	}
114

    
115
	public MatchMode getMatchMode() {
116
		return matchMode;
117
	}
118

    
119
	public void setMatchMode(MatchMode matchMode) {
120
		this.matchMode = matchMode;
121
	}
122
	
123
	public ReferenceBase getSec() {
124
		return sec;
125
	}
126
	
127
	public void setSec(ReferenceBase sec) {
128
		this.sec = sec;
129
	}
130
	
131
	public TaxonomicTree getTaxonomicTree() {
132
		return taxonomicTree;
133
	}
134
	
135
	public void setTaxonomicTree(TaxonomicTree taxonomicTree) {
136
		this.taxonomicTree = taxonomicTree;
137
	}
138

    
139
	public List<String> getTaxonPropertyPath() {
140
		return taxonPropertyPath;
141
	}
142

    
143
	public void setTaxonPropertyPath(List<String> taxonPropertyPath) {
144
		this.taxonPropertyPath = taxonPropertyPath;
145
	}
146

    
147
	public List<String> getCommonNamePropertyPath() {
148
		return commonNamePropertyPath;
149
	}
150

    
151
	public void setCommonNamePropertyPath(List<String> commonNamePropertyPath) {
152
		this.commonNamePropertyPath = commonNamePropertyPath;
153
	}
154

    
155
	/* (non-Javadoc)
156
	 * @see eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator#getAreas()
157
	 */
158
	public Set<NamedArea> getNamedAreas() {
159
		return namedAreas;
160
	}
161

    
162
	/* (non-Javadoc)
163
	 * @see eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator#setAreas(java.util.List)
164
	 */
165
	public void setNamedAreas(Set<NamedArea> namedAreas) {
166
		this.namedAreas = namedAreas;
167
	}
168

    
169
	public List<String> getSynonymPropertyPath() {
170
		return synonymPropertyPath;
171
	}
172
	
173
	public void setSynonymPropertyPath(List<String> synonymPropertyPath){
174
		this.synonymPropertyPath = synonymPropertyPath;
175
	}
176
	
177
}
(3-3/3)