Package de.xima.fc.config
Class XfcConfig
java.lang.Object
de.xima.fc.config.XfcConfig
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic de.xima.cmn.props.FileBasedPropertiesConfigurationGeneral settings related to the formcycle application.static de.xima.cmn.props.FileBasedPropertiesConfigurationSettings related to caches, such as the form or data cache.static de.xima.cmn.props.FileBasedPropertiesConfigurationSettings related to the cluster configuration when using multiple master servers in a cluster.static de.xima.cmn.props.FileBasedPropertiesConfigurationSettings related to the database configuration, such as the JDBC URL and credentials.static de.xima.cmn.props.FileBasedPropertiesConfigurationSettings related to the Kerberos authenticator configuration.static Stringstatic de.xima.cmn.props.FileBasedPropertiesConfigurationSettings related to the logging configuration, such as the log level and log files.static de.xima.cmn.props.FileBasedPropertiesConfigurationSettings related to the system email server configuration.static de.xima.cmn.props.FileBasedPropertiesConfigurationDeprecated.since version 8.0.0 Settings related to the NTLM authenticator configuration.static String - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends org.apache.commons.configuration2.event.Event>
voidaddBuilderEventListener(EXfcConfigType configType, org.apache.commons.configuration2.event.EventType<E> eventType, org.apache.commons.configuration2.event.EventListener<? super E> eventListener) Adds an event listener to theConfigurationBuilderof a given formcycle properties file.static voidstatic voidstatic booleangetBoolean(org.apache.commons.configuration2.ImmutableConfiguration props, String key, boolean defaultValue) Retrieves a value from the given properties object and converts it to a boolean.static javax.servlet.ServletContextDeprecated.Since version 8.0.1.static Stringstatic longstatic longgetLong(org.apache.commons.configuration2.ImmutableConfiguration props, String key, long defaultValue) Retrieves a value from the given properties object and converts it to a long.static StringGets default store key for the official formcycle PROMA plugin store.static de.xima.cmn.props.FileBasedPropertiesConfigurationgetPropertiesConfiguration(String fileName) Gets the properties configuration by its file name.static intstatic StringDeprecated.Since version 8.0.1.getTransformedNamesList(List<String> nameList) static intstatic booleanDeprecated.Since version 8.0.1.static booleanDeprecated.Since version 8.0.1.static booleanPrüft, ob Konfigurationswerte für NTLM-Authentifizierung existierenstatic voidinit(javax.servlet.ServletContext ctx) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidinitMail()static voidstatic booleanDeprecated.UseIWebAppDescriptor.getServerType()viaWebAppContextinstead.static booleanstatic booleanstatic booleanDeprecated.NTLM is deprecated.static booleanDeprecated.NTLM is deprecated.static booleanPrüft, ob die System-Mail-Einstellung aktiviert ist und die entsprechenden Properties vorhanden sind.static <E extends org.apache.commons.configuration2.event.Event>
voidremoveBuilderEventListener(EXfcConfigType configType, org.apache.commons.configuration2.event.EventType<E> eventType, org.apache.commons.configuration2.event.EventListener<? super E> eventListener) Removes an event listener from theConfigurationBuilderof a given formcycle properties file.static voidsetFrontendServer(boolean frontendServer) Deprecated.UseIWebAppDescriptor.getServerType()viaWebAppContextinstead for checking if the current web app is a frontend server.static voidshutdown(javax.servlet.ServletContext ctx)  
- 
Field Details
- 
APPLICATION
public static de.xima.cmn.props.FileBasedPropertiesConfiguration APPLICATIONGeneral settings related to the formcycle application. - 
CACHE
public static de.xima.cmn.props.FileBasedPropertiesConfiguration CACHESettings related to caches, such as the form or data cache. - 
CLUSTER
public static de.xima.cmn.props.FileBasedPropertiesConfiguration CLUSTERSettings related to the cluster configuration when using multiple master servers in a cluster. - 
DATABASE
public static de.xima.cmn.props.FileBasedPropertiesConfiguration DATABASESettings related to the database configuration, such as the JDBC URL and credentials. - 
KERBEROS
public static de.xima.cmn.props.FileBasedPropertiesConfiguration KERBEROSSettings related to the Kerberos authenticator configuration. - 
LOGGING
public static de.xima.cmn.props.FileBasedPropertiesConfiguration LOGGINGSettings related to the logging configuration, such as the log level and log files. - 
MAIL
public static de.xima.cmn.props.FileBasedPropertiesConfiguration MAILSettings related to the system email server configuration. - 
NTLMAUTH
Deprecated.since version 8.0.0 Settings related to the NTLM authenticator configuration. - 
THEME_FILE_PATH
 - 
LIST_PROPERTY_PREFIX
 
 - 
 - 
Constructor Details
- 
XfcConfig
public XfcConfig() 
 - 
 - 
Method Details
- 
initApplication
public static void initApplication() - 
initMail
public static void initMail() - 
initDatabase
public static void initDatabase() - 
initLDAPAuthConfig
public static void initLDAPAuthConfig() - 
initKerberosConfig
public static void initKerberosConfig() - 
initClusterConfig
public static void initClusterConfig() - 
initCacheConfig
public static void initCacheConfig() - 
initThemeCss
public static void initThemeCss() - 
getBoolean
public static boolean getBoolean(org.apache.commons.configuration2.ImmutableConfiguration props, String key, boolean defaultValue) Retrieves a value from the given properties object and converts it to a boolean. Compared withImmutableConfiguration.getBoolean(String, Boolean), this never throws and returns the default value for non-boolean values.- Parameters:
 props- Properties object from which to get a boolean.key- Key to access on the properties object.defaultValue- Default value used when the properties object does not contain a valid boolean value.- Returns:
 - The boolean value at the given key, or the default when it does not contain a valid boolean value for the key.
 
 - 
getLong
public static long getLong(org.apache.commons.configuration2.ImmutableConfiguration props, String key, long defaultValue) Retrieves a value from the given properties object and converts it to a long. Compared withImmutableConfiguration.getLong(String, Long), this never throws and returns the default value for non-boolean values.- Parameters:
 props- Properties object from which to get a boolean.key- Key to access on the properties object.defaultValue- Default value used when the properties object does not contain a valid long value.- Returns:
 - The long value at the given key, or the default when it does not contain a valid long value for the key.
 
 - 
configureLog4j
public static void configureLog4j() - 
configureLocale
public static void configureLocale() - 
shutdown
public static void shutdown(javax.servlet.ServletContext ctx)  - 
init
public static void init(javax.servlet.ServletContext ctx)  - 
hasNTLMConfig
public static boolean hasNTLMConfig()Prüft, ob Konfigurationswerte für NTLM-Authentifizierung existieren- Returns:
 - true oder false, wenn ein Wert fehlt
 
 - 
isKerberosActive
public static boolean isKerberosActive() - 
isKerberosUseForSSO
public static boolean isKerberosUseForSSO() - 
isSystemMailActive
public static boolean isSystemMailActive()Prüft, ob die System-Mail-Einstellung aktiviert ist und die entsprechenden Properties vorhanden sind.- Returns:
 truewenn aktiviert,falsewenn nicht
 - 
getValidityPeriodEmailVerificationInDays
public static int getValidityPeriodEmailVerificationInDays()- Returns:
 - the validity period for email verification links / tokens in days.
 
 - 
getRateLimitResendEmailVerificationInMinutes
public static int getRateLimitResendEmailVerificationInMinutes()- Returns:
 - the rate limit in minutes at which email verification link / tokens can be re-issued.
 
 - 
getInlineTheme
 - 
getInlineThemeLastModified
public static long getInlineThemeLastModified() - 
getPropertiesConfiguration
public static de.xima.cmn.props.FileBasedPropertiesConfiguration getPropertiesConfiguration(String fileName) Gets the properties configuration by its file name.- Parameters:
 fileName- of the properties file.- Returns:
 - the properties configuration with the given file name.
 
 - 
getPluginStoreKey
Gets default store key for the official formcycle PROMA plugin store.- Returns:
 - The key of the formcycle plugin store in PROMA.
 
 - 
addBuilderEventListener
public static <E extends org.apache.commons.configuration2.event.Event> void addBuilderEventListener(EXfcConfigType configType, org.apache.commons.configuration2.event.EventType<E> eventType, org.apache.commons.configuration2.event.EventListener<? super E> eventListener) Adds an event listener to theConfigurationBuilderof a given formcycle properties file. When a listener exists already, it is not added again.- Type Parameters:
 E- Type of the event model class.- Parameters:
 configType- Type of the properties file for which to add a listener.eventType- Type of the event for which to add a listener.eventListener- Listener to add.
 - 
removeBuilderEventListener
public static <E extends org.apache.commons.configuration2.event.Event> void removeBuilderEventListener(EXfcConfigType configType, org.apache.commons.configuration2.event.EventType<E> eventType, org.apache.commons.configuration2.event.EventListener<? super E> eventListener) Removes an event listener from theConfigurationBuilderof a given formcycle properties file. When a listener does not exist, this is a no-op.- Type Parameters:
 E- Type of the event model class.- Parameters:
 configType- Type of the properties file for which to remove a listener.eventType- Type of the event for which to remove a listener.eventListener- Listener to remove.
 - 
getTransformedNamesList
 - 
getServerInfo
Deprecated.Since version 8.0.1. UseIServletContextInfo.getServerInfo()viaWebAppContext.getServletContextInfo()instead.- Returns:
 - the server info of the current web app.
 
 - 
isFrontendServer
Deprecated.UseIWebAppDescriptor.getServerType()viaWebAppContextinstead.- Returns:
 trueif the current web app is a frontend server andfalseotherwise.
 - 
setFrontendServer
Deprecated.UseIWebAppDescriptor.getServerType()viaWebAppContextinstead for checking if the current web app is a frontend server.- Parameters:
 frontendServer- whether the current web app is a frontend server.
 - 
getContext
Deprecated.Since version 8.0.1. UseWebAppContext.getServletContextInfo()for accessing servlet context information instead.- Returns:
 - the current servlet context.
 
 - 
hasGuiCommonModule
Deprecated.Since version 8.0.1. UseIWebAppDescriptor.hasFeature(EFcWebAppFeature)of theweb context's descriptorfor checking features of the current web app instead.Returns whether the current web app provides the GUI common module. Formerly set via context parameterxfc.modules.gui-common. This parameter is now deprecated.- Returns:
 trueif the current web app provides the GUI common module.
 - 
hasInboxModule
Deprecated.Since version 8.0.1. Check forINBOXviaIWebAppDescriptor.hasFeature(EFcWebAppFeature)of theweb context's descriptorinstead.Returns whether the current web app provides the INBOX feature. Formerly set via context parameterxfc.modules.inbox.- Returns:
 trueif the current web app provides the INBOX feature.
 - 
isNTLMActive
Deprecated.NTLM is deprecated. - 
isNTLMUseForSSO
Deprecated.NTLM is deprecated. 
 -