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.dataportal;
|
10
|
|
11
|
import java.net.URL;
|
12
|
import java.util.ArrayList;
|
13
|
import java.util.List;
|
14
|
|
15
|
/**
|
16
|
* Retrieves a list of data portal URLs from the URL passed as paramter to the constructor
|
17
|
* @author a.kohlbecker
|
18
|
* @since Apr 10, 2018
|
19
|
*
|
20
|
*/
|
21
|
public class DataPortalsListContextProvider implements DataPortalContextProvider {
|
22
|
|
23
|
List<URL> dataPoralUrls = new ArrayList<>();
|
24
|
|
25
|
public DataPortalsListContextProvider(URL url){
|
26
|
|
27
|
// FIXME read the list of dataPoralUrls from url and fill dataPoralUrls
|
28
|
|
29
|
}
|
30
|
|
31
|
/**
|
32
|
* {@inheritDoc}
|
33
|
*/
|
34
|
@Override
|
35
|
public List<DataPortalContext> contexts() {
|
36
|
// FIXME create the DataPortalContext for each of the dataPoralUrls
|
37
|
// read any additional from the data portal or from the cdm webservices
|
38
|
// if this is needed for testing.
|
39
|
return null;
|
40
|
}
|
41
|
|
42
|
}
|