Project

General

Profile

Revision e759655c

IDe759655c22ad154f93fb7f76b16d19a87a58384c
Parent 7f4db90c
Child 40268e87

Added by Patrick Plitzner over 3 years ago

ref #7362 Internalize request constants

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/requests/RequestBroader.java
29 29

  
30 30
    @Override
31 31
    protected String getServiceUri() {
32
        return TerminologyServiceConstants.BROADER_SERVICE_URL;
32
        return "broader";
33 33
    }
34 34

  
35 35
    @Override
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/requests/RequestHierarchy.java
27 27

  
28 28
    @Override
29 29
    protected String getServiceUri() {
30
        return TerminologyServiceConstants.HIERARCHY_SERVICE_URL;
30
        return "hierarchy";
31 31
    }
32 32

  
33 33
    /**
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/requests/RequestNarrower.java
29 29

  
30 30
    @Override
31 31
    protected String getServiceUri() {
32
        return TerminologyServiceConstants.NARROWER_SERVICE_URL;
32
        return "narrower";
33 33
    }
34 34

  
35 35
    @Override
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/requests/RequestSuggest.java
27 27

  
28 28
    @Override
29 29
    protected String getServiceUri() {
30
        return TerminologyServiceConstants.SUGGEST_SERVICE_URL;
30
        return "suggest";
31 31
    }
32 32

  
33 33
    /**
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/requests/TerminologyServiceConstants.java
15 15
 */
16 16
public interface TerminologyServiceConstants {
17 17

  
18
    public static final String NARROWER_SERVICE_URL = "narrower";
19
    public static final String BROADER_SERVICE_URL = "broader";
20
    public static final String SUGGEST_SERVICE_URL = "suggest";
21
    public static final String SEARCH_SERVICE_URL = "search";
22
    public static final String HIERARCHY_SERVICE_URL = "hierarchy";
23
    public static final String TERM_SERVICE_URL = "term";
24

  
25 18
    public static final String ATTR_QUERY = "query";
26 19
    public static final String ATTR_URI = "uri";
27 20
    public static final String ATTR_LIMIT = "limit";

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)