1
|
package eu.dnetlib.uoaorcidservice.configuration;
|
2
|
|
3
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
4
|
|
5
|
import java.util.Date;
|
6
|
|
7
|
@ConfigurationProperties("orcidservice.globalVars")
|
8
|
public class GlobalVars {
|
9
|
public static Date date = new Date();
|
10
|
private Date buildDate;
|
11
|
private String version;
|
12
|
|
13
|
public String getBuildDate() {
|
14
|
if(buildDate == null) {
|
15
|
return null;
|
16
|
}
|
17
|
return buildDate.toString();
|
18
|
}
|
19
|
|
20
|
public void setBuildDate(Date buildDate) {
|
21
|
this.buildDate = buildDate;
|
22
|
}
|
23
|
|
24
|
public String getVersion() {
|
25
|
return version;
|
26
|
}
|
27
|
|
28
|
public void setVersion(String version) {
|
29
|
this.version = version;
|
30
|
}
|
31
|
}
|