Project

General

Profile

Download (1.41 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
public enum DataPortalContext {
17

    
18
	cichorieae("http://160.45.63.201/dataportal/preview/cichorieae/", "http://127.0.0.1:8080", "534e190f-3339-49ba-95d9-fa27d5493e3e"), 
19
	palmae("http://160.45.63.201/dataportal/preview/cyprus/", "http://127.0.0.1:8080", "534e190f-3339-49ba-95d9-fa27d5493e3e"),
20
	cyprus("http://160.45.63.201/dataportal/preview/cyprus/", "http://127.0.0.1:8080", "0c2b5d25-7b15-4401-8b51-dd4be0ee5cab");
21

    
22
	URI baseUri;
23
	URI cdmServerUri;
24
	UUID classificationUUID;
25
	String themeName;
26

    
27
	private DataPortalContext(String baseUri, String cdmServerUri, String classificationUUID) {
28
		try {
29
			this.baseUri = new URI(baseUri);
30
			this.cdmServerUri = new URI(cdmServerUri);
31
		} catch (URISyntaxException e) {
32
			throw new RuntimeException(e);
33
		}
34
		this.classificationUUID = UUID.fromString(classificationUUID);
35
	}
36

    
37
	public URI getBaseUri() {
38
		return baseUri;
39
	}
40

    
41
	public URI getCdmServerUri() {
42
		return cdmServerUri;
43
	}
44

    
45
	public UUID getClassificationUUID() {
46
		return classificationUUID;
47
	}
48

    
49
}
(2-2/5)