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.PropertiesConfiguration
APPLICATION
static org.apache.commons.configuration.PropertiesConfiguration
CACHE
static org.apache.commons.configuration.PropertiesConfiguration
CLUSTER
static org.apache.commons.configuration.PropertiesConfiguration
DATABASE
static org.apache.commons.configuration.PropertiesConfiguration
KERBEROS
static String
LIST_PROPERTY_PREFIX
static org.apache.commons.configuration.PropertiesConfiguration
LOGGING
static org.apache.commons.configuration.PropertiesConfiguration
MAIL
static org.apache.commons.configuration.PropertiesConfiguration
NTLMAUTH
static String
THEME_FILE_PATH
-
Constructor Summary
Constructors Constructor Description XfcConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
configureLocale()
static void
configureLog4j()
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.static javax.servlet.ServletContext
getContext()
static String
getInlineTheme()
static long
getInlineThemeLastModified()
static String
getServerInfo()
static List<String>
getTransformedNamesList(List<String> nameList)
static boolean
hasGuiCommonModule()
static boolean
hasInboxModule()
static boolean
hasNTLMConfig()
Prüft, ob Konfigurationswerte für NTLM-Authentifizierung existierenstatic void
init(javax.servlet.ServletContext ctx)
static void
initApplication()
static void
initCacheConfig()
static void
initClusterConfig()
static void
initDatabase()
static void
initKerberosConfig()
static void
initLDAPAuthConfig()
static void
initMail()
static void
initThemeCss()
static boolean
isFrontendServer()
static boolean
isKerberosActive()
static boolean
isKerberosUseForSSO()
static boolean
isNTLMActive()
static boolean
isNTLMUseForSSO()
static boolean
isSystemMailActive()
Prüft, ob die System-Mail-Einstellung aktiviert ist und die entsprechenden Properties vorhanden sind.static void
setFrontendServer(boolean frontendServer)
static void
shutdown(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:
true
wenn aktiviert,false
wenn nicht
-
getInlineTheme
public static String getInlineTheme()
-
getInlineThemeLastModified
public static long getInlineThemeLastModified()
-
-