public final class EdalConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DATACITE_CONNECTION_READ_TIMEOUT
Connection read timeout for HTTP connection to DataCite in milliseconds.
|
static int |
DATACITE_CONNECTION_TIMEOUT
Connection timeout for HTTP connection to DataCite in milliseconds.
|
static String |
DATACITE_SEARCH_URL |
static String |
DATACITE_TESTPREFIX |
static String |
DEFAULT_DATABASE_PASSWORD
The default database password
|
static String |
DEFAULT_DATABASE_USERNAME
The default database user name
|
static int |
DEFAULT_HTTP_PORT
The default port for the HTTP listener
|
static int |
DEFAULT_HTTPS_PORT |
static Path |
DEFAULT_PATH |
static List<Class<? extends Principal>> |
DEFAULT_SUPPORTED_PRINCIPALS
The default supported principals by eDAL.
|
static URL |
KEY_STORE_PATH |
static String |
KEYSTORE_PASSWORD |
static int |
SMTP_CONNECTION_TIMEOUT
Connection timeout for SMTP connection.
|
| Constructor and Description |
|---|
EdalConfiguration(String dataCiteUser,
String dataCitePassword,
String dataCitePrefix,
javax.mail.internet.InternetAddress scientificReviewer,
javax.mail.internet.InternetAddress substituteReviewer,
javax.mail.internet.InternetAddress managingReviewer,
javax.mail.internet.InternetAddress rootUser) |
EdalConfiguration(String dataCiteUser,
String dataCitePassword,
String dataCitePrefix,
javax.mail.internet.InternetAddress scientificReviewer,
javax.mail.internet.InternetAddress substituteReviewer,
javax.mail.internet.InternetAddress managingReviewer,
javax.mail.internet.InternetAddress rootUser,
String httpProxyHost,
int httpProxyPort,
String httpsProxyHost,
int httpsProxyPort,
String smtpHost,
String smtpLogin,
String smtpPassword) |
EdalConfiguration(String dataCiteUser,
String dataCitePassword,
String dataCitePrefix,
javax.mail.internet.InternetAddress scientificReviewer,
javax.mail.internet.InternetAddress substituteReviewer,
javax.mail.internet.InternetAddress managingReviewer,
javax.mail.internet.InternetAddress rootUser,
String smtpHost,
String smtpLogin,
String smtpPassword) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSupportedPrincipal(Class<? extends Principal> principal)
Add a supported Principal to the list of principals.
|
List<String> |
getAliasDomainNames() |
protected URL |
getCertificatePathForHttpListener() |
String |
getDatabasePassword()
Getter for the database password.
|
String |
getDatabaseUsername()
Getter for the database user name.
|
String |
getDataCitePassword()
Getter for the DataCite password.
|
String |
getDataCitePrefix()
Getter for the DataCite prefix
|
String |
getDataCiteUser()
Getter for the DataCite user name.
|
Path |
getDataPath() |
String |
getDoiInfix() |
String |
getEdalEmailAddress()
Getter for the edal email address.
|
protected javax.mail.internet.InternetAddress |
getErrorEmailAddress()
Getter for the eMail address to send error messages.
|
org.apache.log4j.Logger |
getErrorLogger() |
int |
getHttpPort()
Getter for the port of the HTTP server/listener.
|
String |
getHttpProxyHost()
Getter for the HTTP proxy host.
|
int |
getHttpProxyPort()
Getter for the HTTP proxy port.
|
int |
getHttpsPort()
Getter for the port of the HTTPS server/listener.
|
String |
getHttpsProxyHost()
Getter for the HTTPS proxy host.
|
int |
getHttpsProxyPort()
Getter for the HTTPS proxy port.
|
protected String |
getKeystorePasswordForHttpListener() |
org.apache.log4j.Logger |
getLogger() |
String |
getMailSmtpHost()
Getter for the mail SMTP host.
|
String |
getMailSmtpLogin()
Getter for the mail SMTP host.
|
String |
getMailSmtpPassword()
Getter for the mail SMTP password.
|
Path |
getMountPath()
Getter for the mount path of the eDAL system.
|
javax.mail.internet.InternetAddress |
getReviewerManaging()
Getter for the eMail address of the managing reviewer.
|
javax.mail.internet.InternetAddress |
getReviewerScientific()
Getter for the eMail address of the scientific reviewer.
|
javax.mail.internet.InternetAddress |
getReviewerSubstitute()
Getter for the eMail address of the substitute reviewer.
|
javax.mail.internet.InternetAddress |
getRootUser()
Getter for the eMail address for the root user.
|
String |
getStaticServerAdress() |
int |
getStaticServerPort() |
List<Class<? extends Principal>> |
getSupportedPrincipals()
Getter for the List of supported
Principals. |
static InetSocketAddress |
guessProxySettings() |
static String |
guessSmtpSettings(String smtpLogin,
String smtpPassword) |
boolean |
isCleanBrokenEntities() |
boolean |
isInTestMode() |
boolean |
isReadOnly() |
boolean |
isUseSSL() |
boolean |
isUseSSLForHttpListener() |
boolean |
isUseSystemProxies()
Check if proxies should be used.
|
protected void |
setCertificatePathForHttpListener(URL certificatePathForHttpListener) |
void |
setCleanBrokenEntities(boolean cleanBrokenEntities) |
void |
setDatabasePassword(String databasePassword)
Setter for the database password.
|
void |
setDatabaseUsername(String databaseUsername)
Setter for the database user name.
|
void |
setDataPath(Path dataPath)
Setter for the data path.
|
void |
setDoiInfix(String doiInfix) |
protected void |
setErrorEmailAddress(javax.mail.internet.InternetAddress errorEmailAddress) |
void |
setHttpPort(int httpPort)
Setter for the port of the HTTP server/listener.
|
void |
setHttpProxyHost(String httpProxyHost)
Setter for the HTTP proxy host.
|
void |
setHttpProxyPort(int httpProxyPort)
Setter for the HTTP proxy port.
|
void |
setHttpsPort(int httpsPort)
Setter for the port of the HTTPS server/listener.
|
void |
setHttpsProxyHost(String httpsProxyHost)
Setter for the HTTPS proxy host.
|
void |
setHttpsProxyPort(int httpsProxyPort)
Setter for the HTTPS proxy port.
|
protected void |
setKeystorePasswordForHttpListener(String keystorePasswordForHttpListener) |
void |
setMailSmtpHost(String mailSmtpHost)
Setter for the mail SMTP host.
|
void |
setMailSmtpLogin(String mailSmtpLogin)
Setter for the mail SMTP login.
|
void |
setMailSmtpPassword(String mailSmtpPassword)
Setter for the SMTP password.
|
void |
setMountPath(Path mountPath)
Setter for the mount path.
|
void |
setStaticServerAdress(String staticServerAdress) |
void |
setStaticServerPort(int staticServerPort) |
void |
setSupportedPrincipals(List<Class<? extends Principal>> supportedPrincipals)
Setter for the supported
Principals. |
void |
setUseSSL(boolean useSSL) |
void |
setUseSSLForHttpListener(boolean useSSLForHttpListener,
URL pathToKeyStore,
String keystorePassword) |
void |
setUseSystemProxies(boolean useSystemProxies)
Setter to activate the usage of proxies.
|
public static final String DATACITE_SEARCH_URL
public static final String DATACITE_TESTPREFIX
public static final int DATACITE_CONNECTION_TIMEOUT
public static final int DATACITE_CONNECTION_READ_TIMEOUT
public static final int SMTP_CONNECTION_TIMEOUT
public static final Path DEFAULT_PATH
public static final URL KEY_STORE_PATH
public static final String KEYSTORE_PASSWORD
public static final List<Class<? extends Principal>> DEFAULT_SUPPORTED_PRINCIPALS
public static final String DEFAULT_DATABASE_USERNAME
public static final String DEFAULT_DATABASE_PASSWORD
public static final int DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTPS_PORT
public EdalConfiguration(String dataCiteUser, String dataCitePassword, String dataCitePrefix, javax.mail.internet.InternetAddress scientificReviewer, javax.mail.internet.InternetAddress substituteReviewer, javax.mail.internet.InternetAddress managingReviewer, javax.mail.internet.InternetAddress rootUser) throws EdalConfigurationException
EdalConfigurationExceptionpublic EdalConfiguration(String dataCiteUser, String dataCitePassword, String dataCitePrefix, javax.mail.internet.InternetAddress scientificReviewer, javax.mail.internet.InternetAddress substituteReviewer, javax.mail.internet.InternetAddress managingReviewer, javax.mail.internet.InternetAddress rootUser, String httpProxyHost, int httpProxyPort, String httpsProxyHost, int httpsProxyPort, String smtpHost, String smtpLogin, String smtpPassword) throws EdalConfigurationException
EdalConfigurationExceptionpublic EdalConfiguration(String dataCiteUser, String dataCitePassword, String dataCitePrefix, javax.mail.internet.InternetAddress scientificReviewer, javax.mail.internet.InternetAddress substituteReviewer, javax.mail.internet.InternetAddress managingReviewer, javax.mail.internet.InternetAddress rootUser, String smtpHost, String smtpLogin, String smtpPassword) throws EdalConfigurationException
EdalConfigurationExceptionpublic static InetSocketAddress guessProxySettings()
public static String guessSmtpSettings(String smtpLogin, String smtpPassword) throws EdalConfigurationException
EdalConfigurationExceptionpublic void addSupportedPrincipal(Class<? extends Principal> principal)
principal - the principal to add.protected URL getCertificatePathForHttpListener()
public String getDatabasePassword() throws EdalConfigurationException
EdalConfigurationException - if no database password is definedpublic String getDatabaseUsername() throws EdalConfigurationException
EdalConfigurationException - if no database user name is definedpublic String getDataCitePassword() throws EdalConfigurationException
EdalConfigurationException - if no DataCite password is definedpublic String getDataCitePrefix() throws EdalConfigurationException
EdalConfigurationException - if no prefix is definedpublic String getDataCiteUser() throws EdalConfigurationException
EdalConfigurationException - if no DataCite user name is definedpublic Path getDataPath()
public String getDoiInfix()
public String getEdalEmailAddress()
protected javax.mail.internet.InternetAddress getErrorEmailAddress()
throws EdalConfigurationException
EdalConfigurationException - if no email address is setpublic org.apache.log4j.Logger getErrorLogger()
public int getHttpPort()
throws EdalConfigurationException
EdalConfigurationException - if no HTTP port is set.public String getHttpProxyHost() throws EdalConfigurationException
EdalConfigurationException - if no HTTP proxy host is definedpublic int getHttpProxyPort()
throws EdalConfigurationException
EdalConfigurationException - if no HTTP proxy port is definedpublic int getHttpsPort()
throws EdalConfigurationException
EdalConfigurationException - if no HTTPS port is set.public String getHttpsProxyHost() throws EdalConfigurationException
EdalConfigurationException - if no HTTPS proxy host is definedpublic int getHttpsProxyPort()
throws EdalConfigurationException
EdalConfigurationException - if no HTTPS proxy port is definedprotected String getKeystorePasswordForHttpListener()
public org.apache.log4j.Logger getLogger()
public String getMailSmtpHost()
public String getMailSmtpLogin()
public String getMailSmtpPassword()
public Path getMountPath()
public javax.mail.internet.InternetAddress getReviewerManaging()
throws EdalConfigurationException
EdalConfigurationException - if no emailAddress is defined or if it is invalid.public javax.mail.internet.InternetAddress getReviewerScientific()
throws EdalConfigurationException
EdalConfigurationException - if no emailAddress is defined or if it is invalid.public javax.mail.internet.InternetAddress getReviewerSubstitute()
throws EdalConfigurationException
EdalConfigurationException - if no emailAddress is defined or if it is invalid.public javax.mail.internet.InternetAddress getRootUser()
throws EdalConfigurationException
EdalConfigurationException - if no emailAddress is defined or if it is invalid.public String getStaticServerAdress()
public int getStaticServerPort()
public List<Class<? extends Principal>> getSupportedPrincipals() throws EdalConfigurationException
Principals.PrincipalsEdalConfigurationException - if no supported principals are defined !public boolean isInTestMode()
public boolean isReadOnly()
public boolean isUseSSL()
public boolean isUseSSLForHttpListener()
public boolean isUseSystemProxies()
protected void setCertificatePathForHttpListener(URL certificatePathForHttpListener)
certificatePathForHttpListener - the certificatePathForHttpListener to setpublic void setDatabasePassword(String databasePassword)
databasePassword - the database password to setpublic void setDatabaseUsername(String databaseUsername)
databaseUsername - the database user name to setpublic void setDataPath(Path dataPath)
dataPath - the dataPath to setpublic void setDoiInfix(String doiInfix) throws EdalConfigurationException
EdalConfigurationExceptionprotected void setErrorEmailAddress(javax.mail.internet.InternetAddress errorEmailAddress)
errorEmailAddress - the errorEmail to setpublic void setHttpPort(int httpPort)
httpPort - the HTTP port to set.public void setHttpProxyHost(String httpProxyHost)
httpProxyHost - the HTTP proxy host.public void setHttpProxyPort(int httpProxyPort)
httpProxyPort - the HTTP proxy port.public void setHttpsPort(int httpsPort)
httpsPort - the HTTPS port to set.public void setHttpsProxyHost(String httpsProxyHost)
httpsProxyHost - the HTTP proxy host to set.public void setHttpsProxyPort(int httpsProxyPort)
httpsProxyPort - the HTTP proxy port to set.protected void setKeystorePasswordForHttpListener(String keystorePasswordForHttpListener)
keystorePasswordForHttpListener - the keystorePasswordForHttpListener to setpublic void setMailSmtpHost(String mailSmtpHost)
mailSmtpHost - the mail SMTP host to set.public void setMailSmtpLogin(String mailSmtpLogin)
mailSmtpLogin - the mail SMTP login to set.public void setMailSmtpPassword(String mailSmtpPassword)
mailSmtpPassword - the password for the SMTP userpublic void setMountPath(Path mountPath)
mountPath - the mount path to setpublic void setStaticServerAdress(String staticServerAdress)
public void setStaticServerPort(int staticServerPort)
public void setSupportedPrincipals(List<Class<? extends Principal>> supportedPrincipals)
Principals.supportedPrincipals - the supported Principals to set.public void setUseSSL(boolean useSSL)
useSSL - the useSSL to setpublic void setUseSSLForHttpListener(boolean useSSLForHttpListener,
URL pathToKeyStore,
String keystorePassword)
useSSLForHttpListener - the useSSLForHttpListener to setpathToKeyStore - the Path to the keystore filekeystorePassword - the password for the keystorepublic void setUseSystemProxies(boolean useSystemProxies)
useSystemProxies - true if proxy should be usedpublic boolean isCleanBrokenEntities()
public void setCleanBrokenEntities(boolean cleanBrokenEntities)
Copyright © 2017 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.