1
|
/**
|
2
|
* Copyright (C) 2009 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.ext.bci;
|
10
|
|
11
|
import java.net.URL;
|
12
|
import java.util.List;
|
13
|
import java.util.UUID;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
|
16
|
import eu.etaxonomy.cdm.model.occurrence.Collection;
|
17
|
|
18
|
|
19
|
/**
|
20
|
* Interface for queying the Biodiversity Collection Index via webservices ({@link http://www.biodiversitycollectionsindex.org}).
|
21
|
* @author a.mueller
|
22
|
* @created Aug 18, 2010
|
23
|
* @version 1.0
|
24
|
*/
|
25
|
public interface IBciServiceWrapper {
|
26
|
|
27
|
|
28
|
/**
|
29
|
* UUID for the reference representing the IPNI database:<BR/>
|
30
|
* 8b6d750f-c7e0-4180-afbf-aa4c50148813
|
31
|
*/
|
32
|
public static final UUID uuidBci = UUID.fromString("34aa4989-eb5e-4eef-9c9b-080f055ac15c");
|
33
|
|
34
|
public static final String LOOKUP_CODE_REST = "http://www.biocol.org/rest/lookup/code/";
|
35
|
|
36
|
|
37
|
/**
|
38
|
* Returns a list of collections collection code.
|
39
|
*
|
40
|
* @param code
|
41
|
* @param appConfig
|
42
|
* @return
|
43
|
*/
|
44
|
public List<Collection> getCollectionsByCode(String code, ICdmApplicationConfiguration appConfig);
|
45
|
|
46
|
public URL getServiceUrl(String url);
|
47
|
|
48
|
}
|