@Singleton
public class Common
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBasepath()
JATOS' absolute base path without trailing '/.'
|
static java.lang.String |
getBrandingUrl()
URL where some static HTML can be found that can be shown instead of the default welcome message on the home page
|
static java.lang.String |
getDbDriver()
Database driver as defined in application.conf
|
static java.lang.String |
getDbUrl()
Database URL as defined in application.conf
|
static play.mvc.Http.Cookie.SameSite |
getIdCookiesSameSite()
Which SameSite attribute the ID cookies should set
|
static java.lang.String |
getJatosApiVersion()
JATOS API version (different from JATOS version)
|
static java.lang.String |
getJatosHttpAddress()
JATOS HTTP host address without protocol or port (e.g.
|
static int |
getJatosHttpPort()
Port JATOS is running on
|
static java.lang.String |
getJatosUpdateMsg()
If in update happened during last startup a message might be stored here
|
static java.lang.String |
getJatosUrlBasePath()
HTTP URL base path: will be the prefix for each URL, e.g.
|
static java.lang.String |
getJatosVersion()
JATOS version (full version e.g.
|
static java.lang.String |
getLdapAdminDn()
LDAP admin DN (Distinguished Name) - the admin user is used to search for the actual user that wants to log in
|
static java.lang.String |
getLdapAdminPassword()
LDAP admin password
|
static java.util.List<java.lang.String> |
getLdapBaseDn()
LDAP base DNs (Distinguished Name)
|
static int |
getLdapTimeout()
Read timeout for the LDAP server
|
static java.lang.String |
getLdapUrl()
LDAP URL (with port)
|
static java.lang.String |
getLocale()
Locale used in the GUI.
|
static java.lang.String |
getLogsAppender()
Log appender: can be 'ASYNCFILE' (default) or 'ASYNCSTDOUT'
|
static java.lang.String |
getLogsFilename()
Base name of JATOS log files without the suffix ('.log' or '.gz').
|
static java.lang.String |
getLogsPath()
Path where the application logs are located
|
static java.lang.String |
getMac()
MAC address of the network interface
|
static int |
getMaxResultsDbQuerySize()
Maximal number of results to be fetched from the DB at once
|
static java.lang.String |
getOauthGoogleClientId()
Google Sign-in Client ID for OAuth / OpenId Connect (OIDC)
|
static java.lang.String |
getOidcClientId()
OpenId Connect (OIDC) client ID
|
static java.lang.String |
getOidcClientSecret()
OpenId Connect (OIDC) client secret.
|
static java.lang.String |
getOidcDiscoveryUrl()
OpenId Connect (OIDC) provider discovery URL (ends with ".well-known/openid-configuration")
|
static java.lang.String |
getOidcIdTokenSigningAlgorithm()
OpenId Connect (OIDC) token signing algorithm (e.g.
|
static java.lang.String |
getOidcSigninButtonLogoUrl()
Logo URL of OIDC button in sign-in page
|
static java.lang.String |
getOidcSigninButtonText()
Text of OIDC button in sign-in page
|
static java.lang.String |
getOidcSuccessFeedback()
Success feedback text shown to the user if OIDC sign-in was successful
|
static java.lang.String |
getOrcidClientId()
ORCID'S OpenId Connect (OIDC) client ID
|
static java.lang.String |
getOrcidClientSecret()
ORCID's OpenId Connect (OIDC) client secret.
|
static java.lang.String |
getOrcidDiscoveryUrl()
ORCID's OpenId Connect (OIDC) provider discovery URL (ends with ".well-known/openid-configuration")
|
static java.lang.String |
getOrcidIdTokenSigningAlgorithm()
ORCID's OpenId Connect (OIDC) token signing algorithm (e.g.
|
static java.lang.String |
getOrcidSigninButtonLogoUrl()
Logo URL of ORCID button on the sign-in page
|
static java.lang.String |
getOrcidSigninButtonText()
Text of ORCID button on the sign-in page
|
static java.lang.String |
getOrcidSuccessFeedback()
Success feedback text shown to the user if ORCID sign-in was successful.
|
static long |
getResultDataMaxSize()
Maximal size of result data of one component result in Byte
|
static long |
getResultUploadsLimitPerStudyRun()
Max size of all files uploaded during a single study run in bytes
|
static long |
getResultUploadsMaxFileSize()
Max file size in bytes for a single uploaded file
|
static java.lang.String |
getResultUploadsPath()
Path in the file system where JATOS stores uploaded result files
|
static java.lang.String |
getStudyAssetsRootPath()
Path in the file system to the study assets root directory.
|
static java.lang.String |
getStudyLogsPath()
Path in the file system where JATOS stores its logs for each study
|
static java.lang.String |
getTermsOfUseUrl()
URL to the terms of use that will be shown in a link on the home page
|
static java.lang.String |
getTmpPath()
Path to the JATOS tmp directory.
|
static int |
getUserPasswordMinLength()
Message that will be displayed during user creation that describes password requirements
|
static org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.String> |
getUserPasswordStrengthRegex()
Regex that will be used to check the password during user creation
|
static boolean |
getUserSessionAllowKeepSignedin()
If true, the user has the possibility (a checkbox on the GUI's signin page) to keep the user session and to not
get signed out automatically due to user a session timeout (neither through normal timeout nor inactivity).
|
static int |
getUserSessionInactivity()
Time in minutes a user can be inactive before they will be signed out
(defined in application.conf)
|
static int |
getUserSessionTimeout()
Time in minutes when the Play session will timeout (defined in
application.conf)
|
static boolean |
isDonationAllowed()
Should the GUI show a donations button
|
static boolean |
isIdCookiesSecure()
If true, the ID cookies' secure attribute will be set
|
static boolean |
isJatosApiAllowed()
If true, it is allowed to use JATOS' API
|
static boolean |
isLdapAllowed() |
static boolean |
isLogsAppenderStdOut()
Returns true if the Logger logs to STDOUT and false otherwise.
|
static boolean |
isMultiNode()
True indicates that this JATOS runs with others in a cluster
|
static boolean |
isOauthGoogleAllowed() |
static boolean |
isOidcAllowed() |
static boolean |
isOrcidAllowed() |
static boolean |
isResultUploadsEnabled()
Are file uploads via jatos.js allowed?
|
static boolean |
isStudyLogsEnabled()
Is study logging enabled
|
static boolean |
isStudyMembersAllowedToAddAllUsers()
If true, it's allowed to add all users that exist on this JATOS server to be added at once as members of a study
|
static boolean |
isUserRoleAllowSuperuser()
If true, it is allowed to grant users the Superuser role
|
static boolean |
showResultDataSizeInStudyManager()
If false, the result data size won't be calculated for the study manager page.
|
static boolean |
showResultFileSizeInStudyManager()
If false, the study result file size won't be calculated for the study manager page.
|
static boolean |
showStudyAssetsSizeInStudyManager()
If false, the study assets folder size won't be calculated for the study manager page.
|
static boolean |
usesMysql()
Does JATOS use an MySQL database?
|
public static java.lang.String getJatosVersion()
public static java.lang.String getJatosApiVersion()
public static java.lang.String getBasepath()
public static java.lang.String getStudyAssetsRootPath()
public static boolean isStudyLogsEnabled()
public static java.lang.String getStudyLogsPath()
public static boolean isResultUploadsEnabled()
public static java.lang.String getResultUploadsPath()
public static long getResultUploadsMaxFileSize()
public static long getResultUploadsLimitPerStudyRun()
public static long getResultDataMaxSize()
public static int getMaxResultsDbQuerySize()
public static int getUserSessionTimeout()
public static int getUserSessionInactivity()
public static boolean getUserSessionAllowKeepSignedin()
public static java.lang.String getDbUrl()
public static boolean usesMysql()
public static java.lang.String getDbDriver()
public static java.lang.String getMac()
public static int getUserPasswordMinLength()
public static org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.String> getUserPasswordStrengthRegex()
public static java.lang.String getJatosUrlBasePath()
public static java.lang.String getJatosUpdateMsg()
public static java.lang.String getJatosHttpAddress()
public static int getJatosHttpPort()
public static java.lang.String getLdapUrl()
public static java.util.List<java.lang.String> getLdapBaseDn()
public static java.lang.String getLdapAdminDn()
public static java.lang.String getLdapAdminPassword()
public static boolean isLdapAllowed()
public static int getLdapTimeout()
public static boolean isOauthGoogleAllowed()
public static java.lang.String getOauthGoogleClientId()
public static boolean isOidcAllowed()
public static java.lang.String getOidcDiscoveryUrl()
public static java.lang.String getOidcClientId()
public static java.lang.String getOidcClientSecret()
public static java.lang.String getOidcIdTokenSigningAlgorithm()
public static java.lang.String getOidcSigninButtonText()
public static java.lang.String getOidcSigninButtonLogoUrl()
public static java.lang.String getOidcSuccessFeedback()
public static boolean isOrcidAllowed()
public static java.lang.String getOrcidDiscoveryUrl()
public static java.lang.String getOrcidClientId()
public static java.lang.String getOrcidClientSecret()
public static java.lang.String getOrcidIdTokenSigningAlgorithm()
public static java.lang.String getOrcidSigninButtonText()
public static java.lang.String getOrcidSigninButtonLogoUrl()
public static java.lang.String getOrcidSuccessFeedback()
public static boolean isDonationAllowed()
public static java.lang.String getTermsOfUseUrl()
public static java.lang.String getBrandingUrl()
public static java.lang.String getLocale()
public static boolean isStudyMembersAllowedToAddAllUsers()
public static boolean isIdCookiesSecure()
public static play.mvc.Http.Cookie.SameSite getIdCookiesSameSite()
public static boolean showStudyAssetsSizeInStudyManager()
public static boolean showResultDataSizeInStudyManager()
public static boolean showResultFileSizeInStudyManager()
public static boolean isUserRoleAllowSuperuser()
public static boolean isJatosApiAllowed()
public static java.lang.String getLogsPath()
public static java.lang.String getLogsFilename()
public static java.lang.String getLogsAppender()
public static boolean isLogsAppenderStdOut()
public static java.lang.String getTmpPath()
public static boolean isMultiNode()