@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 |
getDbDefaultDriver()
Database driver as defined in application.conf
|
static java.lang.String |
getDbDefaultUrl()
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 |
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 |
getJatosVersion()
JATOS version (full version e.g.
|
static java.lang.String |
getJpaDefault()
JPA persistence unit as defined in application.conf
|
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 |
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 |
getPlayHttpContext()
HTTP URL base path: will be the prefix for each URL, e.g.
|
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 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 |
isInMemoryDb()
Is true if an in-memory database is used.
|
static boolean |
isLdapAllowed() |
static boolean |
isOauthGoogleAllowed() |
static boolean |
isResultDataExportUseTmpFile()
If true, result data that are fetched from the database are first stored in a temporary file and only if
they are all gathered the file is sent to the browser.
|
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 |
isUserSessionValidation()
Toggle for user session validation (not the Play session validation which is done by Play).
|
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 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 boolean isInMemoryDb()
public static int getUserSessionTimeout()
public static int getUserSessionInactivity()
public static boolean isUserSessionValidation()
public static java.lang.String getDbDefaultUrl()
public static boolean usesMysql()
public static java.lang.String getDbDefaultDriver()
public static java.lang.String getJpaDefault()
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 getPlayHttpContext()
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 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 isResultDataExportUseTmpFile()
public static boolean showStudyAssetsSizeInStudyAdmin()
public static boolean showResultDataSizeInStudyAdmin()
public static boolean showResultFileSizeInStudyAdmin()
public static boolean isUserRoleAllowSuperuser()