Project

General

Profile

Download (1.36 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
package eu.etaxonomy.dataportal;
11

    
12
import java.net.URI;
13
import java.net.URISyntaxException;
14
import java.util.UUID;
15

    
16
import org.apache.log4j.Logger;
17

    
18
public enum DataPortalContext {
19

    
20
	cichorieae("http://160.45.63.201/dataportal/preview/cichorieae/",
21
			"http://127.0.0.1:8080", "534e190f-3339-49ba-95d9-fa27d5493e3e"), palmae(
22
			"http://160.45.63.201/dataportal/preview/palmae/",
23
			"http://127.0.0.1:8080", "534e190f-3339-49ba-95d9-fa27d5493e3e");
24
	// floraMalesiana;
25

    
26

    
27
	URI baseUri;
28
	URI cdmServerUri;
29
	UUID classificationUUID;
30
	String themeName;
31

    
32
	private DataPortalContext(String baseUri, String cdmServerUri,
33
			String classificationUUID) {
34
		try {
35
			this.baseUri = new URI(baseUri);
36
			this.cdmServerUri = new URI(cdmServerUri);
37
		} catch (URISyntaxException e) {
38
			throw new RuntimeException(e);
39
		}
40
		this.classificationUUID = UUID.fromString(classificationUUID);
41
	}
42

    
43
	public URI getBaseUri() {
44
		return baseUri;
45
	}
46

    
47
	public URI getCdmServerUri() {
48
		return cdmServerUri;
49
	}
50

    
51
	public UUID getClassificationUUID() {
52
		return classificationUUID;
53
	}
54

    
55
}
(2-2/5)