Interface MidpointConfiguration
public interface MidpointConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Property for config file name override; if empty, default value is used.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Reference to midpoint-system.properties generated in system-init component.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.configuration2.Configuration
org.apache.commons.configuration2.Configuration
getConfiguration
(String component) Get configuration for symbolic name of the component from configuration subsystem.@NotNull ProfilingMode
@NotNull SystemConfigurationSection
boolean
boolean
boolean
keyMatches
(String key, String... regexPatterns) Returns true if the configuration key matches any of provided regular expression patterns.
-
Field Details
-
MIDPOINT_SILENT_PROPERTY
- See Also:
-
MIDPOINT_HOME_PROPERTY
- See Also:
-
MIDPOINT_SCHRODINGER_PROPERTY
- See Also:
-
MIDPOINT_LOGGING_ALT_ENABLED_PROPERTY
- See Also:
-
MIDPOINT_LOGGING_ALT_FILENAME_PROPERTY
- See Also:
-
MIDPOINT_LOGGING_ALT_PREFIX_PROPERTY
- See Also:
-
MIDPOINT_SKIP_VERSION_CHECK
- See Also:
-
USER_HOME_PROPERTY
- See Also:
-
MIDPOINT_CONFIG_FILE_PROPERTY
Property for config file name override; if empty, default value is used.- See Also:
-
MIDPOINT_NODE_ID_PROPERTY
- See Also:
-
MIDPOINT_NODE_ID_SOURCE_PROPERTY
- See Also:
-
MIDPOINT_URL_PROPERTY
- See Also:
-
MIDPOINT_HOST_NAME_PROPERTY
- See Also:
-
MIDPOINT_HTTP_PORT_PROPERTY
- See Also:
-
AUDIT_CONFIGURATION
- See Also:
-
SYSTEM_CONFIGURATION
- See Also:
-
GLOBAL_CONFIGURATION
- See Also:
-
PROTECTOR_CONFIGURATION
- See Also:
-
REPOSITORY_CONFIGURATION
- See Also:
-
ROOT_MIDPOINT_CONFIGURATION
- See Also:
-
CONSTANTS_CONFIGURATION
- See Also:
-
ICF_CONFIGURATION
- See Also:
-
TASK_MANAGER_CONFIGURATION
- See Also:
-
DOT_CONFIGURATION
- See Also:
-
WEB_APP_CONFIGURATION
- See Also:
-
WORKFLOW_CONFIGURATION
- See Also:
-
INTERNALS_CONFIGURATION
- See Also:
-
ADMINISTRATOR_INITIAL_PASSWORD
- See Also:
-
MIDPOINT_SYSTEM_PROPERTIES_BASE_PATH
Reference to midpoint-system.properties generated in system-init component. It is generated during the build. This file contains various system properties such midPoint version, build ID, build timestamp and so on. This is a base path (without extension).- See Also:
-
-
Method Details
-
getMidpointHome
String getMidpointHome()- Returns:
- midPoint home directory. Currently, it is the same value as in "midpoint.home" system property.
-
getConfiguration
Get configuration for symbolic name of the component from configuration subsystem.- Parameters:
component
- name of the component Samples of names:- repository -> midpoint.repository
- provisioning -> midpoint.provisioning
- Returns:
- Configuration object
Sample how to get config value:
config.getInt("port", 1234);
-
getConfiguration
org.apache.commons.configuration2.Configuration getConfiguration()- Returns:
- Global configuration.
-
isSafeMode
boolean isSafeMode()- Returns:
- True if we are running in safe mode (the exact meaning gradually evolves; but the overall idea is to make midPoint barely usable to be able to fix the worst problems preventing it from running normally).
-
isProfilingEnabled
boolean isProfilingEnabled()- Returns:
- True if the profiling interceptor should be loaded.
-
getProfilingMode
- Returns:
- Current profiling mode e.g. on, off, dynamic.
-
getSystemSection
- Returns:
- "midpoint.system" section of the system configuration
-
keyMatches
Returns true if the configuration key matches any of provided regular expression patterns. Provided pattern must match the whole value, seeString.matches(java.lang.String)
. Some examples:x\.y.*
- value starts withx.y
(dot must be escaped, in Java String syntax double backslash must be used!)(?i)sql
- value is exactly SQL, ignoring casing
- Parameters:
key
- key from configuration, starting atconfiguration
element (root), can be complex, e.g.midpoint.repository.type
.regexPatterns
- regular expression patterns that must match the whole value. It is possible to matchnull
too, if no regex pattern is used, or if the first pattern itself is null.
-