Class SubjectSettings
- java.lang.Object
-
- de.businesscode.bcdui.subjectsettings.config.SubjectSettingsConfig
-
- de.businesscode.bcdui.subjectsettings.SubjectSettings
-
public class SubjectSettings extends SubjectSettingsConfig
Subject settings are session settings in web and non-web environments It covers rights, i18n settings and so on
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.businesscode.bcdui.subjectsettings.config.SubjectSettingsConfig
SubjectSettingsConfig.SubjectFilterTypes, SubjectSettingsConfig.UserSettingsDefaults
-
-
Field Summary
-
Fields inherited from class de.businesscode.bcdui.subjectsettings.config.SubjectSettingsConfig
authentication, subjectFilterTypes, subjectSettings, userSettingsDefaults
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SubjectSettings()
Do not use directly, use getInstance() instead, this class is expected to be only instantiated by JAXB as a singelton
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDataSourceName()
java.lang.String
getFilterType(SubjectFilterType subjectFilterType)
static SubjectSettings
getInstance()
SubjectFilterType
getSubjectFilterTypeByName(java.lang.String type)
boolean
isWasConfigured()
static boolean
rightsInDbAvailable()
-
Methods inherited from class de.businesscode.bcdui.subjectsettings.config.SubjectSettingsConfig
getAuthentication, getSubjectFilterTypes, getSubjectSettings, getUserSettingsDefaults, setAuthentication, setSubjectFilterTypes, setSubjectSettings, setUserSettingsDefaults
-
-
-
-
Method Detail
-
isWasConfigured
public boolean isWasConfigured()
- Returns:
- TRUE if this instance was configured by host project is is hollow instance
-
getInstance
public static final SubjectSettings getInstance()
-
getSubjectFilterTypeByName
public SubjectFilterType getSubjectFilterTypeByName(java.lang.String type)
-
rightsInDbAvailable
public static boolean rightsInDbAvailable()
-
getDataSourceName
public java.lang.String getDataSourceName()
- Returns:
- name of DataSource to use or null if none defined in SubjectSettings/Jdbc/DataSource
-
getFilterType
public java.lang.String getFilterType(SubjectFilterType subjectFilterType)
- Parameters:
subjectFilterType
-- Returns:
- filter type literal, which is either defined by filter type name or explicit type
-
-