Newer
Older
Sonia Zorba
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package it.inaf.ia2.tsm.webapp;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
/**
* JAXB model for TSM web application configuration.
*
* @author Sonia Zorba {@literal <zorba at oats.inaf.it>}
*/
@XmlRootElement(name = "configuration")
public class Configuration {
private CredentialsConfiguration credentialsConfiguration;
private List<String> customUCDs;
private String version;
public Configuration() {
version = Version.NUMBER;
credentialsConfiguration = new CredentialsConfiguration();
customUCDs = new ArrayList<>();
}
@XmlElement(name = "credentials-config")
public CredentialsConfiguration getCredentialsConfiguration() {
return credentialsConfiguration;
}
public void setCredentialsConfiguration(CredentialsConfiguration credentialsConfiguration) {
this.credentialsConfiguration = credentialsConfiguration;
}
@XmlElementWrapper(name = "custom-ucds")
@XmlElement(name = "ucd")
public List<String> getCustomUCDs() {
return customUCDs;
}
public void setCustomUCDs(List<String> customUCDs) {
this.customUCDs = customUCDs;
}
@XmlAttribute(name = "version")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
}