Class GrouperConfig
java.lang.Object
edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
edu.internet2.middleware.grouper.cfg.GrouperConfig
Grouper configuration information.
This class is being deprecated by the edu.internet2.middleware.grouper.cfg.Configuration
interface.
- Since:
- ?
- Version:
- $Id: GrouperConfig.java,v 1.9 2009-12-16 06:02:30 mchyzer Exp $
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.ConfigFile, ConfigPropertiesCascadeBase.ConfigFileType
-
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
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
Default DAO implementation to be used if an alternative is not configured.static final String
String with value of""
.static final long
Epoch origin.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
if tooltips should be substituted in messagesstatic final String
static final String
Property containing name of DAO implementation to be used.static final String
Property containing maximum age of cached wheel group.static final String
Property determining whether wheel group is to be used.static final String
Property containing name of wheel group.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 TypeMethodDescriptionget the attribute def ids to ignore when sending to change log, and auditget the attribute def name ids to ignore when sending to change log, and auditvoid
cache deprovisioning affiliationsstatic String
getGrouperUiUrl
(boolean exceptionIfNull) get the UI url with a slash on the endstatic String
getHibernateProperty
(String property) Deprecated.use GrouperHibernateConfig.retrieveConfig().propertyValueString() insteadstatic int
getHibernatePropertyInt
(String property, int defaultValue) get the hibernate property value as an int, throw an exception if invalid value.protected String
protected String
protected String
static String
getProperty
(String property) Deprecated.use GrouperConfig.retrieveConfig().propertyValueString insteadgetProperty
(String property, String defaultValue) static boolean
getPropertyBoolean
(String propertyName, boolean defaultValue) Deprecated.use GrouperConfig.retrieveConfig().propertyValueBoolean(propertyName, defaultValue) insteadstatic int
getPropertyInt
(String propertyName, int defaultValue) Deprecated.use GrouperConfig.retrieveConfig().propertyValueIntDeprecated.use GrouperConfig.retrieveConfig().propertyNames() insteadprotected String
void
For testing purposesstatic GrouperConfig
retrieve a config from the config file or from cachedefault bundlecountry to text bundlecountry to text bundlecountry to text bundleMethods inherited from class edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
assertPropertyValueBoolean, assertPropertyValueClass, assertPropertyValueRequired, assignInitted, clearCache, clearCacheThisOnly, configExistsNotInBaseOrDatabase, containsKey, filesNeedReloadingBasedOnContents, getClassInSiblingJar, getMainConfigFileName, getTimeToCheckConfigSeconds, hasExpressionLanguage, internalProperties, internalRetrieveConfigFiles, isInDatabase, logError, logInfo, needToCheckIfFilesNeedReloading, properties, propertiesFromResourceName, propertiesFromResourceName, propertiesHelper, propertiesMap, propertiesOverrideMap, propertiesThreadLocalOverrideMap, propertyConfigIds, propertyNames, propertyValueBoolean, propertyValueBoolean, propertyValueBoolean, propertyValueBooleanRequired, propertyValueInt, propertyValueInt, propertyValueInt, propertyValueIntRequired, propertyValueString, propertyValueString, propertyValueString, propertyValueStringHelper, propertyValueStringRequired, rawExpressionLanguage, retrieveConfig, retrieveFromConfigFileOrCache, retrieveFromConfigFiles, retrieveFromConfigFiles, substituteCommonVars, substituteLocalReferencesAndUnicode, substituteLocalReferencesOneField, substituteLocalReferencesOneSubstitution, substituteUnicode
-
Field Details
-
DEFAULT_DAO_FACTORY
Default DAO implementation to be used if an alternative is not configured.- Since:
- 1.2.0
-
EMPTY_STRING
String with value of""
.- See Also:
-
EPOCH
public static final long EPOCHEpoch origin.- See Also:
-
PROP_DAO_FACTORY
Property containing name of DAO implementation to be used.Grouper will default to
DEFAULT_DAO_FACTORY
if this property is not set.- Since:
- 1.2.0
- See Also:
-
PROP_MAX_WHEEL_AGE
Property containing maximum age of cached wheel group.- See Also:
-
PROP_WHEEL_GROUP
Property containing name of wheel group.- See Also:
-
PROP_USE_WHEEL_GROUP
Property determining whether wheel group is to be used.- See Also:
-
ALL
- See Also:
-
ALL_NAME
- See Also:
-
ATTR_C
- See Also:
-
ATTR_CT
- See Also:
-
ATTRIBUTE_DESCRIPTION
- See Also:
-
ATTRIBUTE_DISPLAY_EXTENSION
- See Also:
-
ATTRIBUTE_DISPLAY_NAME
- See Also:
-
ATTRIBUTE_EXTENSION
- See Also:
-
ATTRIBUTE_NAME
- See Also:
-
BT
- See Also:
-
GCGAOI
- See Also:
-
GCGAOO
- See Also:
-
GCGAR
- See Also:
-
GCGAV
- See Also:
-
GCGAGAR
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_ADMIN
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTIN
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTOUT
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_READ
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_UPDATE
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_VIEW
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_DEF_ATTR_READ
- See Also:
-
ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_DEF_ATTR_UPDATE
- See Also:
-
IST
- See Also:
-
LIST
- See Also:
-
NL
-
ROOT
- See Also:
-
ROOT_NAME
- See Also:
-
SCGAC
- See Also:
-
SCGASA
- See Also:
-
SCGASAR
- See Also:
-
SCGASAU
- See Also:
-
SCII
- See Also:
-
SCIDFRI
- See Also:
-
WHEEL_NAME
- See Also:
-
MESSAGES_USE_TOOLTIPS
if tooltips should be substituted in messages- See Also:
-
-
Method Details
-
attributeDefIdsToIgnoreChangeLogAndAudit
get the attribute def ids to ignore when sending to change log, and audit- Returns:
- the set of attribute definition ids
-
resetAttributeDefNameIdsToIgnoreChangeLogAndAudit
public void resetAttributeDefNameIdsToIgnoreChangeLogAndAudit()For testing purposes -
attributeDefNameIdsToIgnoreChangeLogAndAudit
get the attribute def name ids to ignore when sending to change log, and audit- Returns:
- the set of attribute def name ids
-
retrieveConfig
retrieve a config from the config file or from cache- Returns:
- the config object
-
getHibernateProperty
Deprecated.use GrouperHibernateConfig.retrieveConfig().propertyValueString() insteadGet a Hibernate configuration parameter.String dialect = GrouperConfig.getHibernateProperty("hibernate.dialect");
- Returns:
- Value of configuration parameter or an empty string if parameter is invalid.
- Since:
- 1.1.0
-
getProperty
Deprecated.use GrouperConfig.retrieveConfig().propertyValueString insteadGet a Grouper configuration parameter.String wheel = GrouperConfig.retrieveConfig().propertyValueString("groups.wheel.group");
- Parameters:
property
- is the property key- Returns:
- Value of configuration parameter or an empty string if parameter is invalid.
- Since:
- 1.1.0
-
getPropertyNames
Deprecated.use GrouperConfig.retrieveConfig().propertyNames() insteadGet a Grouper config names- Returns:
- set of names
-
getPropertyBoolean
Deprecated.use GrouperConfig.retrieveConfig().propertyValueBoolean(propertyName, defaultValue) insteadget the property value as a boolean, throw an exception if invalid value. Acceptable values are: t, f, true, false (case-insensitive)- Parameters:
propertyName
-defaultValue
- if the property is blank or missing, return this value- Returns:
- true or false
-
getPropertyInt
Deprecated.use GrouperConfig.retrieveConfig().propertyValueIntget the property value as an int, throw an exception if invalid value.- Parameters:
propertyName
-defaultValue
- if the property is blank or missing, return this value- Returns:
- the int
-
getProperty
- Parameters:
property
-defaultValue
-- Returns:
- the property value, or the default value if the property value is blank
- Throws:
IllegalArgumentException
-
getHibernatePropertyInt
get the hibernate property value as an int, throw an exception if invalid value.- Parameters:
property
-defaultValue
-- Returns:
- int
-
getGrouperUiUrl
get the UI url with a slash on the end- Parameters:
exceptionIfNull
-- Returns:
- the UI URL
-
clearCachedCalculatedValues
public void clearCachedCalculatedValues()- Specified by:
clearCachedCalculatedValues
in classConfigPropertiesCascadeBase
- See Also:
-
getHierarchyConfigKey
- Specified by:
getHierarchyConfigKey
in classConfigPropertiesCascadeBase
- See Also:
-
getMainConfigClasspath
- Specified by:
getMainConfigClasspath
in classConfigPropertiesCascadeBase
- See Also:
-
getMainExampleConfigClasspath
- Specified by:
getMainExampleConfigClasspath
in classConfigPropertiesCascadeBase
- See Also:
-
getSecondsToCheckConfigKey
- Specified by:
getSecondsToCheckConfigKey
in classConfigPropertiesCascadeBase
- See Also:
-
deprovisioningAffiliations
cache deprovisioning affiliations- Returns:
- the affiliations
-
textBundleDefault
default bundle- Returns:
- the textBundleDefault
-
textBundleFromCountry
country to text bundle- Returns:
- the map
-
textBundleFromLanguage
country to text bundle- Returns:
- the map
-
textBundleFromLanguageAndCountry
country to text bundle- Returns:
- the map
-