@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 |
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 |
getOidcIdTokenSigningAlgorithm()
OpenId Connect (OIDC) Client ID
|
static java.lang.String |
getOidcProviderConfigUrl()
OpenId Connect (OIDC) provider config URL (ends with ".well-known/openid-configuration")
|
static java.lang.String |
getOidcSignInButtonLogoUrl()
Logo URL of OIDC button in login page
|
static java.lang.String |
getOidcSignInButtonText()
Text of OIDC button in login page
|
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 |
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 int |
getUserSessionInactivity()
Time in minutes a user can be inactive before he will be logged-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 |
isMultiNode()
True indicates that this JATOS runs with others in a cluster
|
static boolean |
isOauthGoogleAllowed() |
static boolean |
isOidcAllowed() |
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 |
showResultDataSizeInStudyAdmin()
If false, the result data size won't be calculated for the study admin page.
|
static boolean |
showResultFileSizeInStudyAdmin()
If false, the study result file size won't be calculated for the study admin page.
|
static boolean |
showStudyAssetsSizeInStudyAdmin()
If false, the study assets folder size won't be calculated for the study admin page.
|
static java.lang.String |
termsOfUseUrl()
URL to the terms of use that will be shown in a link on the home 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 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 getOidcProviderConfigUrl()
public static java.lang.String getOidcClientId()
public static java.lang.String getOidcIdTokenSigningAlgorithm()
public static java.lang.String getOidcSignInButtonText()
public static java.lang.String getOidcSignInButtonLogoUrl()
public static boolean isDonationAllowed()
public static java.lang.String termsOfUseUrl()
public static java.lang.String getBrandingUrl()
public static boolean isStudyMembersAllowedToAddAllUsers()
public static boolean isIdCookiesSecure()
public static play.mvc.Http.Cookie.SameSite getIdCookiesSameSite()
public static boolean showStudyAssetsSizeInStudyAdmin()
public static boolean showResultDataSizeInStudyAdmin()
public static boolean showResultFileSizeInStudyAdmin()
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 java.lang.String getTmpPath()
public static boolean isMultiNode()