Package de.xima.fc.config
Class XfcConfig
- java.lang.Object
-
- de.xima.fc.config.XfcConfig
-
public final class XfcConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.configuration.PropertiesConfigurationAPPLICATIONstatic org.apache.commons.configuration.PropertiesConfigurationCACHEstatic org.apache.commons.configuration.PropertiesConfigurationCLUSTERstatic org.apache.commons.configuration.PropertiesConfigurationDATABASEstatic org.apache.commons.configuration.PropertiesConfigurationKERBEROSstatic StringLIST_PROPERTY_PREFIXstatic org.apache.commons.configuration.PropertiesConfigurationLOGGINGstatic org.apache.commons.configuration.PropertiesConfigurationMAILstatic org.apache.commons.configuration.PropertiesConfigurationNTLMAUTHstatic StringTHEME_FILE_PATH
-
Constructor Summary
Constructors Constructor Description XfcConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigureLocale()static voidconfigureLog4j()static booleangetBoolean(org.apache.commons.configuration.AbstractConfiguration props, String key, boolean defaultValue)Retrieves a value from the given properties object and converts it to a boolean.static javax.servlet.ServletContextgetContext()static StringgetInlineTheme()static longgetInlineThemeLastModified()static StringgetServerInfo()static List<String>getTransformedNamesList(List<String> nameList)static booleanhasGuiCommonModule()static booleanhasInboxModule()static booleanhasNTLMConfig()Prüft, ob Konfigurationswerte für NTLM-Authentifizierung existierenstatic voidinit(javax.servlet.ServletContext ctx)static voidinitApplication()static voidinitCacheConfig()static voidinitClusterConfig()static voidinitDatabase()static voidinitKerberosConfig()static voidinitLDAPAuthConfig()static voidinitMail()static voidinitThemeCss()static booleanisFrontendServer()static booleanisKerberosActive()static booleanisKerberosUseForSSO()static booleanisNTLMActive()static booleanisNTLMUseForSSO()static booleanisSystemMailActive()Prüft, ob die System-Mail-Einstellung aktiviert ist und die entsprechenden Properties vorhanden sind.static voidsetFrontendServer(boolean frontendServer)static voidshutdown(javax.servlet.ServletContext ctx)
-
-
-
Field Detail
-
APPLICATION
public static org.apache.commons.configuration.PropertiesConfiguration APPLICATION
-
LOGGING
public static org.apache.commons.configuration.PropertiesConfiguration LOGGING
-
DATABASE
public static org.apache.commons.configuration.PropertiesConfiguration DATABASE
-
NTLMAUTH
public static org.apache.commons.configuration.PropertiesConfiguration NTLMAUTH
-
MAIL
public static org.apache.commons.configuration.PropertiesConfiguration MAIL
-
CLUSTER
public static org.apache.commons.configuration.PropertiesConfiguration CLUSTER
-
KERBEROS
public static org.apache.commons.configuration.PropertiesConfiguration KERBEROS
-
CACHE
public static org.apache.commons.configuration.PropertiesConfiguration CACHE
-
THEME_FILE_PATH
public static String THEME_FILE_PATH
-
LIST_PROPERTY_PREFIX
public static String LIST_PROPERTY_PREFIX
-
-
Method Detail
-
setFrontendServer
public static void setFrontendServer(boolean frontendServer)
-
isFrontendServer
public static boolean isFrontendServer()
-
getContext
public static javax.servlet.ServletContext getContext()
-
hasGuiCommonModule
public static boolean hasGuiCommonModule()
-
hasInboxModule
public static boolean hasInboxModule()
-
getServerInfo
public static String getServerInfo()
-
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.configuration.AbstractConfiguration props, String key, boolean defaultValue)Retrieves a value from the given properties object and converts it to a boolean. Compared withAbstractConfiguration.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.
-
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
-
isNTLMActive
public static boolean isNTLMActive()
-
isNTLMUseForSSO
public static boolean isNTLMUseForSSO()
-
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
-
getInlineTheme
public static String getInlineTheme()
-
getInlineThemeLastModified
public static long getInlineThemeLastModified()
-
-