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.taxeditor.view.webimport.termimport.requests;
|
10
|
|
11
|
import java.util.ArrayList;
|
12
|
import java.util.List;
|
13
|
|
14
|
/**
|
15
|
* @author pplitzner
|
16
|
* @since Apr 23, 2018
|
17
|
*
|
18
|
*/
|
19
|
public class RequestTerm extends AbstractTerminologyServiceRequest{
|
20
|
|
21
|
private String termUri;
|
22
|
private String ontologyLabel;
|
23
|
|
24
|
public RequestTerm(String termUri, String ontologyLabel) {
|
25
|
super();
|
26
|
this.termUri = termUri;
|
27
|
this.ontologyLabel = ontologyLabel;
|
28
|
}
|
29
|
|
30
|
@Override
|
31
|
protected String getServiceUri() {
|
32
|
return "term";
|
33
|
}
|
34
|
|
35
|
@Override
|
36
|
protected String getTerminologyId() {
|
37
|
return ontologyLabel;
|
38
|
}
|
39
|
|
40
|
@Override
|
41
|
protected List<RequestParameter> getServiceParameters() {
|
42
|
List<RequestParameter> params = new ArrayList<>();
|
43
|
params.add(new RequestParameter(TerminologyServiceConstants.ATTR_URI, termUri));
|
44
|
return params;
|
45
|
}
|
46
|
|
47
|
}
|