Package org.cyclos.server.utils
Class CyclosProperties
- java.lang.Object
-
- org.cyclos.server.utils.CyclosProperties
-
public class CyclosProperties extends Object
Contains helpers to read from cyclos.properties
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CyclosProperties(Properties properties, Map<String,String> pathMappings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<WeekDay>getAccountsVerificationBalanceCheckDays()intgetArchiveAccountFeesDays()intgetArchiveBulkActionsDays()Returns the number of days before bulk actions are archived.intgetArchiveImportsDays()Returns the number of days before archiving processed imports, or removing failed ones.intgetArchivingDeleteDurationMinutes()Returns the number of minutes (1 - minutes per day) the recurring task that deletes archived entities should runintgetArchivingDeleteStartHour()Returns the hour of day (0 - 23) when the recurring task that deletes archived entities should runintgetArchivingMonths()Returns the number of months for data retention of banking dataStringgetArchivingPassword()Returns the password to authenticate against the external archive applicationStringgetArchivingUrl()Returns the URL for the external archive application which removes data from the database which is out of the retention windowStringgetArchivingUser()Returns the user to authenticate against the external archive applicationintgetArchivingWaitTimeBetweenDeletesMillis()The time (in millis) to wait between each batch deletioncom.google.common.cache.CacheBuilderSpecgetCacheSpec(String name)Returns theCacheBuilderSpecfor the cache with the given nameStringgetClusterHandlerClass()Returns the class which handles clustering tasksList<String>getCorsOrigins()Map<String,String>getCyclosProperties()Returns only those properties explicitly defined (in the file or as a system property) that starts withPROPERTY_PREFIXStringgetDataSourceProviderClass()Returns the data source provider classPropertiesgetDataSourceProviderProperties()Returns the properties which are passed to the data source providerStringgetDbPopulatorClass()Returns the populator class for the initial databaseStringgetDbQueryHandlerClass()Returns the native query handler classintgetExpireExternalPaymentsDays()Returns the number of days a pending external payment remains in the system until it's expired.StringgetIdMaskClass()Returns the class for the id maskintgetLicenseMaxUsersAlertPercentage()Returns a threshold of the maximum allowed registered usersStringgetLicenseUrl()Returns the URL of the license serverStringgetLogDataSourceProviderClass()Returns the class name to use as log data source provider when logging to an external databasePropertiesgetLogDataSourceProviderProperties()Returns the configuration properties for the log data source provider when logging to an external databaseStringgetLogDir()Returns the directory where logs should be saved.intgetLogMaxFiles()intgetLogMaxFileSize()StringgetLogProviderClass()intgetMailSleepSeconds()Returns the number of seconds the e-mail sending should sleepintgetMaxBackgroundTasks()Returns the maximum background tasks to execute in this Cyclos instance.intgetMaxBCryptStrength()Returns the maximum BCrypt strength allowed for password types in any networkIntegergetMaxPoolSize()Returns the underlying max pool size for the database connectionintgetMaxRecurringTasks()Returns the maximum recurring tasks to execute in this Cyclos instance.StringgetNFCTokenTypeKey()Returns the NFC Token Principal type keyintgetProfilingMaxEntries()PropertiesgetProperties()Returns the entirePropertiesobjectStringgetProtocolHeader()Returns the header which is used to read the original connection protocol (to the proxy / load balancer)intgetPurgeLoginLogsDays()Returns the number of days to keep login history logsintgetPurgeMessagesOnTrashDays()Returns the number of days messages should be left on trash before being permanently removed.intgetPurgeNotificationsDays()Returns the number of days notifications should be kept before being permanently removed.intgetPurgeSessionsDays()Returns the number of days to keep sessions in the databaseintgetPurgeUnconfirmedUsersDays()Returns the number of days users pending e-mail confirmation should be kept before being permanently removed.intgetRateLimitGlobal()The rate limit, in request per second, for all clientsintgetRateLimitIp()The rate limit, in requests per second, per IP addressStringgetRateLimitWhitelist()The list of IP addresses to which the rate limit is not appliedPropertiesgetReadOnlyDataSourceProviderProperties()The properties used to configure the read-only datasourceStringgetRemoteAddressHeader()Returns the header which is used to read the remote address instead of reading directly from requestsintgetRemoteAddressHeaderIndex()Returns the index used to retrieve the remote address from comma-separated list associated to thegetRemoteAddressHeader()Map<String,String>getResponseHeaders()Headers that should be sent on HTTP responsesStringgetSassExecutable()StringgetSearchHandlerClass()Returns the class name used to handle searchesPropertiesgetSearchHandlerProperties()Returns the properties for the search handlerstatic StringgetStoredFileContentManagerAlias(String className)StringgetStoredFileContentManagerClass()Returns the class which handles the file's contents storage.PropertiesgetStoredFileContentManagerProperties()static Map<String,String>getStoredFileContentManagers()FilegetTempDir()Returns the directory where temporary / cached files are storedFilegetTempFilesDir()booleanisArchivingTrustAllCerts()Returns whether SSL certificate errors should be ignored when connecting to the external archive applicationbooleanisCacheQueries()Returns whether the queries cache is enabledbooleanisDbManaged()Returns whether the database is managed automaticallybooleanisDebuggableEnv()Returns whether the runtime environment is debuggable or not.
When in dev or running the tests it returns truebooleanisDevelopment()Indicates whether Cyclos is running in development modebooleanisDisableSearchEnginesIndexing()Returns whether indexing by search engines should be disabledbooleanisDumpAllErrors()Returns whether all errors should be dumped to the error logbooleanisForceFlushOnEveryTransaction()Returns whether to force flush on every transaction or not.booleanisLicenseIgnoreIssueReports()booleanisRestReference()Returns whether the REST API reference page (at _root_/api is enabled)booleanisSessionsAnyAddress()Returns whether sessions can be validated from any IP address (true) or only for the original IP address (false)booleanisSkipEmails()Returns whether emails must be skippedbooleanisSkipInitializations()booleanisSynchronousLog()Indicates whether logging should happen in the caller thread (true) or in background (false)booleanisTestingEnv()Indicates whether Cyclos is running the JUnit testsbooleanisUseReadOnlyDataSource()Indicates whether a read-only datasource should be usedbooleanisUsingOpenSearch()Return if it we're using OpenSearch as search handlerstatic booleanisUsingOpenSearch(String searchHandler)booleanisWebServicesGzip()Returns whether to gzip web services responses larger than a thresholdFilenewTempDir()Creates a new temporary empty directory in the temp directoryFilenewTempFile(String prefix, String suffix)Creates a new temporary file in the temp directoryFileresolveFile(String path)Resolves the physical file descriptor for the given path, replacing variables like %t by the temp dir
-
-
-
Field Detail
-
AUTO_CONFIGURING
public static final String AUTO_CONFIGURING
Property value meaning auto configuring.- See Also:
- Constant Field Values
-
AUTO_CONFIGURING_MAX_RECURRING_TASKS
public static final int AUTO_CONFIGURING_MAX_RECURRING_TASKS
The maximum calculated value when auto configuring was set for the max recurring tasks.- See Also:
- Constant Field Values
-
AUTO_CONFIGURING_MAX_POOL_SIZE
public static final int AUTO_CONFIGURING_MAX_POOL_SIZE
The maximum calculated value when auto configuring was set for the max pool size.- See Also:
- Constant Field Values
-
AUTO_CONFIGURING_MIN_POOL_SIZE
public static final int AUTO_CONFIGURING_MIN_POOL_SIZE
The minimum calculated value when auto configuring was set for the max pool size.- See Also:
- Constant Field Values
-
PROPERTY_PREFIX
public static final String PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
CYCLOS_PROPERTIES
public static final String CYCLOS_PROPERTIES
- See Also:
- Constant Field Values
-
DEVELOPMENT
public static final String DEVELOPMENT
- See Also:
- Constant Field Values
-
DATASOURCE_PREFIX
public static final String DATASOURCE_PREFIX
- See Also:
- Constant Field Values
-
READONLY_DATASOURCE_PREFIX
public static final String READONLY_DATASOURCE_PREFIX
- See Also:
- Constant Field Values
-
DATASOURCE_PROVIDER_SUFFIX
public static final String DATASOURCE_PROVIDER_SUFFIX
- See Also:
- Constant Field Values
-
C3P0_MAX_POOL_SIZE
public static final String C3P0_MAX_POOL_SIZE
- See Also:
- Constant Field Values
-
HIKARI_MAX_POOL_SIZE
public static final String HIKARI_MAX_POOL_SIZE
- See Also:
- Constant Field Values
-
C3P0_CONNECTION_TESTER_KEY
public static final String C3P0_CONNECTION_TESTER_KEY
- See Also:
- Constant Field Values
-
C3P0_CONNECTION_TESTER_CLASS
public static final String C3P0_CONNECTION_TESTER_CLASS
- See Also:
- Constant Field Values
-
ID_MASK
public static final String ID_MASK
- See Also:
- Constant Field Values
-
NFC_TOKEN_TYPE_KEY
public static final String NFC_TOKEN_TYPE_KEY
- See Also:
- Constant Field Values
-
MAX_BCRYPT_STRENGTH
public static final String MAX_BCRYPT_STRENGTH
- See Also:
- Constant Field Values
-
DB_MANAGED
public static final String DB_MANAGED
- See Also:
- Constant Field Values
-
DB_POPULATOR
public static final String DB_POPULATOR
- See Also:
- Constant Field Values
-
DB_QUERY_HANDLER
public static final String DB_QUERY_HANDLER
- See Also:
- Constant Field Values
-
SEARCH_HANDLER
public static final String SEARCH_HANDLER
- See Also:
- Constant Field Values
-
FORCE_FLUSH_ON_EVERY_TRANSACTION
public static final String FORCE_FLUSH_ON_EVERY_TRANSACTION
- See Also:
- Constant Field Values
-
LICENSE_URL
public static final String LICENSE_URL
- See Also:
- Constant Field Values
-
LICENSE_IGNORE_ISSUE_REPORTS
public static final String LICENSE_IGNORE_ISSUE_REPORTS
- See Also:
- Constant Field Values
-
CLUSTER_HANDLER
public static final String CLUSTER_HANDLER
- See Also:
- Constant Field Values
-
STORED_FILE_CONTENT_MANAGER
public static final String STORED_FILE_CONTENT_MANAGER
- See Also:
- Constant Field Values
-
TEMP_DIR
public static final String TEMP_DIR
- See Also:
- Constant Field Values
-
CACHE_PREFIX
public static final String CACHE_PREFIX
- See Also:
- Constant Field Values
-
LOG_SYNCHRONOUS
public static final String LOG_SYNCHRONOUS
- See Also:
- Constant Field Values
-
LOG_PROVIDER
public static final String LOG_PROVIDER
- See Also:
- Constant Field Values
-
LOG_DIR
public static final String LOG_DIR
- See Also:
- Constant Field Values
-
LOG_MAX_FILES
public static final String LOG_MAX_FILES
- See Also:
- Constant Field Values
-
LOG_MAX_FILE_SIZE
public static final String LOG_MAX_FILE_SIZE
- See Also:
- Constant Field Values
-
LOG_DATASOURCE_PREFIX
public static final String LOG_DATASOURCE_PREFIX
- See Also:
- Constant Field Values
-
MAIL_SLEEP_SECONDS
public static final String MAIL_SLEEP_SECONDS
- See Also:
- Constant Field Values
-
QUERY_CACHE
public static final String QUERY_CACHE
- See Also:
- Constant Field Values
-
CORS_ORIGIN
public static final String CORS_ORIGIN
- See Also:
- Constant Field Values
-
REST_REFERENCE
public static final String REST_REFERENCE
- See Also:
- Constant Field Values
-
MAX_BACKGROUND_TASKS
public static final String MAX_BACKGROUND_TASKS
- See Also:
- Constant Field Values
-
MAX_RECURRING_TASKS
public static final String MAX_RECURRING_TASKS
- See Also:
- Constant Field Values
-
SKIP_INITIALIZATIONS
public static final String SKIP_INITIALIZATIONS
- See Also:
- Constant Field Values
-
DUMP_ALL_ERRORS
public static final String DUMP_ALL_ERRORS
- See Also:
- Constant Field Values
-
SKIP_EMAILS
public static final String SKIP_EMAILS
- See Also:
- Constant Field Values
-
DISABLE_SEARCH_ENGINES_INDEXING
public static final String DISABLE_SEARCH_ENGINES_INDEXING
- See Also:
- Constant Field Values
-
PURGE_MESSAGES_ON_TRASH_DAYS
public static final String PURGE_MESSAGES_ON_TRASH_DAYS
- See Also:
- Constant Field Values
-
PURGE_NOTIFICATIONS_DAYS
public static final String PURGE_NOTIFICATIONS_DAYS
- See Also:
- Constant Field Values
-
PURGE_UNCONFIRMED_USERS_DAYS
public static final String PURGE_UNCONFIRMED_USERS_DAYS
- See Also:
- Constant Field Values
-
PURGE_LOGIN_LOGS_DAYS
public static final String PURGE_LOGIN_LOGS_DAYS
- See Also:
- Constant Field Values
-
PURGE_SESSIONS_DAYS
public static final String PURGE_SESSIONS_DAYS
- See Also:
- Constant Field Values
-
ARCHIVE_IMPORTS_DAYS
public static final String ARCHIVE_IMPORTS_DAYS
- See Also:
- Constant Field Values
-
ARCHIVE_ACCOUNT_FEES_DAYS
public static final String ARCHIVE_ACCOUNT_FEES_DAYS
- See Also:
- Constant Field Values
-
ARCHIVE_BULK_ACTIONS_DAYS
public static final String ARCHIVE_BULK_ACTIONS_DAYS
- See Also:
- Constant Field Values
-
EXPIRE_EXTERNAL_PAYMENTS_DAYS
public static final String EXPIRE_EXTERNAL_PAYMENTS_DAYS
- See Also:
- Constant Field Values
-
HEADER_REMOTE_ADDRESS
public static final String HEADER_REMOTE_ADDRESS
- See Also:
- Constant Field Values
-
HEADER_REMOTE_ADDRESS_INDEX
public static final String HEADER_REMOTE_ADDRESS_INDEX
- See Also:
- Constant Field Values
-
HEADER_PROTOCOL
public static final String HEADER_PROTOCOL
- See Also:
- Constant Field Values
-
SESSIONS_ANY_ADDRESS
public static final String SESSIONS_ANY_ADDRESS
- See Also:
- Constant Field Values
-
WEB_SERVICES_GZIP
public static final String WEB_SERVICES_GZIP
- See Also:
- Constant Field Values
-
RATE_LIMIT_GLOBAL
public static final String RATE_LIMIT_GLOBAL
- See Also:
- Constant Field Values
-
RATE_LIMIT_IP
public static final String RATE_LIMIT_IP
- See Also:
- Constant Field Values
-
RATE_LIMIT_WHITELIST
public static final String RATE_LIMIT_WHITELIST
- See Also:
- Constant Field Values
-
RESPONSE_HEADERS_PREFIX
public static final String RESPONSE_HEADERS_PREFIX
- See Also:
- Constant Field Values
-
PROFILING_MAX_ENTRIES
public static final String PROFILING_MAX_ENTRIES
- See Also:
- Constant Field Values
-
SASS_EXECUTABLE
public static final String SASS_EXECUTABLE
- See Also:
- Constant Field Values
-
ACCOUNTS_VERIFICATION_BALANCE_CHECK_DAYS
public static final String ACCOUNTS_VERIFICATION_BALANCE_CHECK_DAYS
- See Also:
- Constant Field Values
-
ARCHIVING_MONTHS
public static final String ARCHIVING_MONTHS
- See Also:
- Constant Field Values
-
ARCHIVING_URL
public static final String ARCHIVING_URL
- See Also:
- Constant Field Values
-
ARCHIVING_USER
public static final String ARCHIVING_USER
- See Also:
- Constant Field Values
-
ARCHIVING_PASSWORD
public static final String ARCHIVING_PASSWORD
- See Also:
- Constant Field Values
-
ARCHIVING_TRUST_ALL_CERTS
public static final String ARCHIVING_TRUST_ALL_CERTS
- See Also:
- Constant Field Values
-
ARCHIVING_WAIT_TIME_BETWEEN_DELETES_MILLIS
public static final String ARCHIVING_WAIT_TIME_BETWEEN_DELETES_MILLIS
- See Also:
- Constant Field Values
-
ARCHIVING_DELETE_START_HOUR
public static final String ARCHIVING_DELETE_START_HOUR
- See Also:
- Constant Field Values
-
ARCHIVING_DELETE_DURATION_MINUTES
public static final String ARCHIVING_DELETE_DURATION_MINUTES
- See Also:
- Constant Field Values
-
LICENSE_MAX_USERS_ALERT_PERCENTAGE
public static final String LICENSE_MAX_USERS_ALERT_PERCENTAGE
- See Also:
- Constant Field Values
-
NFC_TOKEN_TYPE_KEY_ZERO_VALUE
public static final String NFC_TOKEN_TYPE_KEY_ZERO_VALUE
The following are the possible values for the property linkNFC_TOKEN_TYPE_KEY- See Also:
- Constant Field Values
-
NFC_TOKEN_TYPE_KEY_RANDOM_VALUE
public static final String NFC_TOKEN_TYPE_KEY_RANDOM_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_NFC_TOKEN_TYPE_KEY
public static final String DEFAULT_NFC_TOKEN_TYPE_KEY
This is the default value for the property linkNFC_TOKEN_TYPE_KEY- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVING_WAIT_TIME_BETWEEN_DELETES_MILLIS
public static final int DEFAULT_ARCHIVING_WAIT_TIME_BETWEEN_DELETES_MILLIS
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVING_DELETE_START_HOUR
public static final int DEFAULT_ARCHIVING_DELETE_START_HOUR
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVING_DELETE_DURATION_MINUTES
public static final int DEFAULT_ARCHIVING_DELETE_DURATION_MINUTES
- See Also:
- Constant Field Values
-
DEFAULT_MAX_BACKGROUND_TASKS
public static final String DEFAULT_MAX_BACKGROUND_TASKS
- See Also:
- Constant Field Values
-
DEFAULT_MAX_RECURRING_TASKS
public static final String DEFAULT_MAX_RECURRING_TASKS
- See Also:
- Constant Field Values
-
DEFAULT_MAX_BCRYPT_STRENGTH
public static final int DEFAULT_MAX_BCRYPT_STRENGTH
- See Also:
- Constant Field Values
-
DEFAULT_PURGE_MESSAGES_ON_TRASH_DAYS
public static final int DEFAULT_PURGE_MESSAGES_ON_TRASH_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_PURGE_NOTIFICATIONS_DAYS
public static final int DEFAULT_PURGE_NOTIFICATIONS_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_PURGE_UNCONFIRMED_USERS_DAYS
public static final int DEFAULT_PURGE_UNCONFIRMED_USERS_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_PURGE_LOGIN_LOGS_DAYS
public static final int DEFAULT_PURGE_LOGIN_LOGS_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_EXPIRE_EXTERNAL_PAYMENTS_DAYS
public static final int DEFAULT_EXPIRE_EXTERNAL_PAYMENTS_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVE_IMPORTS_DAYS
public static final int DEFAULT_ARCHIVE_IMPORTS_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVE_ACCOUNT_FEES_DAYS
public static final int DEFAULT_ARCHIVE_ACCOUNT_FEES_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVE_BULK_ACTIONS_DAYS
public static final int DEFAULT_ARCHIVE_BULK_ACTIONS_DAYS
- See Also:
- Constant Field Values
-
DEFAULT_LOG_THREADS
public static final int DEFAULT_LOG_THREADS
- See Also:
- Constant Field Values
-
DEFAULT_LOG_DIR
public static final String DEFAULT_LOG_DIR
- See Also:
- Constant Field Values
-
DEFAULT_MAX_LOG_FILES
public static final int DEFAULT_MAX_LOG_FILES
- See Also:
- Constant Field Values
-
DEFAULT_MAX_LOG_FILE_SIZE
public static final String DEFAULT_MAX_LOG_FILE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_PROFILING_MAX_ENTRIES
public static final int DEFAULT_PROFILING_MAX_ENTRIES
- See Also:
- Constant Field Values
-
DEFAULT_CACHE_NAME
public static final String DEFAULT_CACHE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CyclosProperties
public CyclosProperties(Properties properties, Map<String,String> pathMappings)
-
-
Method Detail
-
getStoredFileContentManagerAlias
public static String getStoredFileContentManagerAlias(String className)
-
isUsingOpenSearch
public static boolean isUsingOpenSearch(String searchHandler)
-
getAccountsVerificationBalanceCheckDays
public Set<WeekDay> getAccountsVerificationBalanceCheckDays()
-
getArchiveAccountFeesDays
public int getArchiveAccountFeesDays()
-
getArchiveBulkActionsDays
public int getArchiveBulkActionsDays()
Returns the number of days before bulk actions are archived.
-
getArchiveImportsDays
public int getArchiveImportsDays()
Returns the number of days before archiving processed imports, or removing failed ones. Zero means never.
-
getArchivingDeleteDurationMinutes
public int getArchivingDeleteDurationMinutes()
Returns the number of minutes (1 - minutes per day) the recurring task that deletes archived entities should run
-
getArchivingDeleteStartHour
public int getArchivingDeleteStartHour()
Returns the hour of day (0 - 23) when the recurring task that deletes archived entities should run
-
getArchivingMonths
public int getArchivingMonths()
Returns the number of months for data retention of banking data
-
getArchivingPassword
public String getArchivingPassword()
Returns the password to authenticate against the external archive application
-
getArchivingUrl
public String getArchivingUrl()
Returns the URL for the external archive application which removes data from the database which is out of the retention window- See Also:
getArchivingMonths()
-
getArchivingUser
public String getArchivingUser()
Returns the user to authenticate against the external archive application
-
getArchivingWaitTimeBetweenDeletesMillis
public int getArchivingWaitTimeBetweenDeletesMillis()
The time (in millis) to wait between each batch deletion
-
getCacheSpec
@Nonnull public com.google.common.cache.CacheBuilderSpec getCacheSpec(String name)
Returns theCacheBuilderSpecfor the cache with the given name
-
getClusterHandlerClass
@Nonnull public String getClusterHandlerClass()
Returns the class which handles clustering tasks
-
getCyclosProperties
@Nonnull public Map<String,String> getCyclosProperties()
Returns only those properties explicitly defined (in the file or as a system property) that starts withPROPERTY_PREFIX
-
getDataSourceProviderClass
@Nonnull public String getDataSourceProviderClass()
Returns the data source provider class
-
getDataSourceProviderProperties
@Nonnull public Properties getDataSourceProviderProperties()
Returns the properties which are passed to the data source provider
-
getDbPopulatorClass
@Nonnull public String getDbPopulatorClass()
Returns the populator class for the initial database
-
getDbQueryHandlerClass
@Nonnull public String getDbQueryHandlerClass()
Returns the native query handler class
-
getExpireExternalPaymentsDays
@Nonnull public int getExpireExternalPaymentsDays()
Returns the number of days a pending external payment remains in the system until it's expired.
-
getIdMaskClass
@Nonnull public String getIdMaskClass()
Returns the class for the id mask
-
getLicenseMaxUsersAlertPercentage
public int getLicenseMaxUsersAlertPercentage()
Returns a threshold of the maximum allowed registered users
-
getLicenseUrl
@Nonnull public String getLicenseUrl()
Returns the URL of the license server
-
getLogDataSourceProviderClass
public String getLogDataSourceProviderClass()
Returns the class name to use as log data source provider when logging to an external database
-
getLogDataSourceProviderProperties
public Properties getLogDataSourceProviderProperties()
Returns the configuration properties for the log data source provider when logging to an external database
-
getLogDir
@Nonnull public String getLogDir()
Returns the directory where logs should be saved. If set the configuration option will be ignored. If not set, will take into account the configuration option.
-
getLogMaxFiles
public int getLogMaxFiles()
-
getLogMaxFileSize
public int getLogMaxFileSize()
-
getLogProviderClass
public String getLogProviderClass()
-
getMailSleepSeconds
public int getMailSleepSeconds()
Returns the number of seconds the e-mail sending should sleep
-
getMaxBackgroundTasks
public int getMaxBackgroundTasks()
Returns the maximum background tasks to execute in this Cyclos instance. Setting this to zero effectively disables background tasks
-
getMaxBCryptStrength
public int getMaxBCryptStrength()
Returns the maximum BCrypt strength allowed for password types in any network
-
getMaxPoolSize
public Integer getMaxPoolSize()
Returns the underlying max pool size for the database connection
-
getMaxRecurringTasks
public int getMaxRecurringTasks()
Returns the maximum recurring tasks to execute in this Cyclos instance. Setting this to zero effectively disables recurring tasks
-
getNFCTokenTypeKey
@Nonnull public String getNFCTokenTypeKey()
Returns the NFC Token Principal type key
-
getProfilingMaxEntries
public int getProfilingMaxEntries()
-
getProperties
@Nonnull public Properties getProperties()
Returns the entirePropertiesobject
-
getProtocolHeader
public String getProtocolHeader()
Returns the header which is used to read the original connection protocol (to the proxy / load balancer)
-
getPurgeLoginLogsDays
public int getPurgeLoginLogsDays()
Returns the number of days to keep login history logs
-
getPurgeMessagesOnTrashDays
public int getPurgeMessagesOnTrashDays()
Returns the number of days messages should be left on trash before being permanently removed. Zero means never remove.
-
getPurgeNotificationsDays
public int getPurgeNotificationsDays()
Returns the number of days notifications should be kept before being permanently removed. Zero means never remove.
-
getPurgeSessionsDays
public int getPurgeSessionsDays()
Returns the number of days to keep sessions in the database
-
getPurgeUnconfirmedUsersDays
public int getPurgeUnconfirmedUsersDays()
Returns the number of days users pending e-mail confirmation should be kept before being permanently removed. Zero means never remove.
-
getRateLimitGlobal
public int getRateLimitGlobal()
The rate limit, in request per second, for all clients
-
getRateLimitIp
public int getRateLimitIp()
The rate limit, in requests per second, per IP address
-
getRateLimitWhitelist
public String getRateLimitWhitelist()
The list of IP addresses to which the rate limit is not applied
-
getReadOnlyDataSourceProviderProperties
@Nonnull public Properties getReadOnlyDataSourceProviderProperties()
The properties used to configure the read-only datasource
-
getRemoteAddressHeader
public String getRemoteAddressHeader()
Returns the header which is used to read the remote address instead of reading directly from requests
-
getRemoteAddressHeaderIndex
public int getRemoteAddressHeaderIndex()
Returns the index used to retrieve the remote address from comma-separated list associated to thegetRemoteAddressHeader()
-
getResponseHeaders
public Map<String,String> getResponseHeaders()
Headers that should be sent on HTTP responses
-
getSassExecutable
public String getSassExecutable()
-
getSearchHandlerClass
@Nonnull public String getSearchHandlerClass()
Returns the class name used to handle searches
-
getSearchHandlerProperties
@Nonnull public Properties getSearchHandlerProperties()
Returns the properties for the search handler
-
getStoredFileContentManagerClass
@Nonnull public String getStoredFileContentManagerClass()
Returns the class which handles the file's contents storage.
-
getStoredFileContentManagerProperties
@Nonnull public Properties getStoredFileContentManagerProperties()
-
getTempDir
@Nonnull public File getTempDir()
Returns the directory where temporary / cached files are stored
-
getTempFilesDir
public File getTempFilesDir()
-
isArchivingTrustAllCerts
public boolean isArchivingTrustAllCerts()
Returns whether SSL certificate errors should be ignored when connecting to the external archive application
-
isCacheQueries
public boolean isCacheQueries()
Returns whether the queries cache is enabled
-
isDbManaged
public boolean isDbManaged()
Returns whether the database is managed automatically
-
isDebuggableEnv
public boolean isDebuggableEnv()
Returns whether the runtime environment is debuggable or not.
When in dev or running the tests it returns true
-
isDevelopment
public boolean isDevelopment()
Indicates whether Cyclos is running in development mode
-
isDisableSearchEnginesIndexing
public boolean isDisableSearchEnginesIndexing()
Returns whether indexing by search engines should be disabled
-
isDumpAllErrors
public boolean isDumpAllErrors()
Returns whether all errors should be dumped to the error log
-
isForceFlushOnEveryTransaction
public boolean isForceFlushOnEveryTransaction()
Returns whether to force flush on every transaction or not.
-
isLicenseIgnoreIssueReports
public boolean isLicenseIgnoreIssueReports()
-
isRestReference
public boolean isRestReference()
Returns whether the REST API reference page (at _root_/api is enabled)
-
isSessionsAnyAddress
public boolean isSessionsAnyAddress()
Returns whether sessions can be validated from any IP address (true) or only for the original IP address (false)
-
isSkipEmails
public boolean isSkipEmails()
Returns whether emails must be skipped
-
isSkipInitializations
public boolean isSkipInitializations()
-
isSynchronousLog
public boolean isSynchronousLog()
Indicates whether logging should happen in the caller thread (true) or in background (false)
-
isTestingEnv
public boolean isTestingEnv()
Indicates whether Cyclos is running the JUnit tests
-
isUseReadOnlyDataSource
public boolean isUseReadOnlyDataSource()
Indicates whether a read-only datasource should be used
-
isUsingOpenSearch
public boolean isUsingOpenSearch()
Return if it we're using OpenSearch as search handler
-
isWebServicesGzip
public boolean isWebServicesGzip()
Returns whether to gzip web services responses larger than a threshold
-
newTempDir
public File newTempDir()
Creates a new temporary empty directory in the temp directory
-
newTempFile
public File newTempFile(String prefix, String suffix)
Creates a new temporary file in the temp directory
-
-