Class GrouperLoaderConfig
java.lang.Object
edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
edu.internet2.middleware.grouper.app.loader.GrouperLoaderConfig
-
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
name of param: default.subject.source.id if you want queries which do not specify subject source to come from a certain source, specify here (improves performance so it doesnt search through all sources) default is 10static final String
name of param: loader.retain.db.logs.days number of days to retain db logs in table grouperloader_log. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
protected String
protected String
protected String
static boolean
getPropertyBoolean
(String property, boolean defaultValue) Deprecated.use GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(property, defaultValue)static int
getPropertyInt
(String property, int defaultValue) Deprecated.GrouperLoaderConfig.retrieveConfig().propertyValueInt(property, defaultValue);static String
getPropertyString
(String property) Deprecated.use GrouperLoaderConfig.retrieveConfig().propertyValueString(property, ""); insteadstatic String
getPropertyString
(String property, boolean required) Deprecated.use GrouperLoaderConfig.retrieveConfig().propertyValueStringRequired(property)static String
getPropertyString
(String property, String defaultValue) Deprecated.use retrieveConfig().propertyValueString(property, defaultValue) insteadprotected String
static String
parseLdapBaseDnFromUrlConfig
(String ldapServerId) get the base dn from the URL, e.g.static GrouperLoaderConfig
retrieve a config from the config file or from cachestatic GrouperLoaderDb
retrieveDbProfile
(String name) get a profile by name.Methods 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
-
LOADER_RETAIN_DB_LOGS_DAYS
name of param: loader.retain.db.logs.days number of days to retain db logs in table grouperloader_log. -1 is forever. default is 7- See Also:
-
DEFAULT_SUBJECT_SOURCE_ID
name of param: default.subject.source.id if you want queries which do not specify subject source to come from a certain source, specify here (improves performance so it doesnt search through all sources) default is 10- See Also:
-
-
Method Details
-
failsafeSendEmailDefault
public boolean failsafeSendEmailDefault()- Returns:
-
getPropertyBoolean
@Deprecated public static boolean getPropertyBoolean(String property, boolean defaultValue) throws NumberFormatException Deprecated.use GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(property, defaultValue)Get a Grouper configuration parameter as boolean (must be true|t|false|f case-insensitive)- Parameters:
property
- to lookupdefaultValue
- if the property is not there- Returns:
- Value of configuration parameter or null if parameter isnt specified. Exception is thrown if not formatted correcly
- Throws:
NumberFormatException
- if cannot convert the value to an Integer
-
getPropertyInt
@Deprecated public static int getPropertyInt(String property, int defaultValue) throws NumberFormatException Deprecated.GrouperLoaderConfig.retrieveConfig().propertyValueInt(property, defaultValue);Get a Grouper configuration parameter an integer- Parameters:
property
- to lookupdefaultValue
- of the int if not there- Returns:
- Value of configuration parameter or null if parameter isnt specified. Exception is thrown if not formatted correcly
- Throws:
NumberFormatException
- if cannot convert the value to an Integer
-
getPropertyString
Deprecated.use GrouperLoaderConfig.retrieveConfig().propertyValueString(property, ""); insteadGet a Grouper configuration parameter.String wheel = GrouperLoaderConfig.getProperty("groups.wheel.group");
- Parameters:
property
- to lookup- Returns:
- Value of configuration parameter or an empty string if parameter is invalid.
-
getPropertyString
Deprecated.use GrouperLoaderConfig.retrieveConfig().propertyValueStringRequired(property)Get a Grouper configuration parameter.String wheel = GrouperLoaderConfig.getProperty("groups.wheel.group");
- Parameters:
property
- to lookuprequired
- if property is required. if so, exception if not found. if not, null if not found. note if value is not filled in, but name is there, then still exception if required- Returns:
- Value of configuration parameter or null if parameter is not there
-
getPropertyString
Deprecated.use retrieveConfig().propertyValueString(property, defaultValue) insteadGet a Grouper configuration parameter.String wheel = GrouperLoaderConfig.getProperty("groups.wheel.group");
- Parameters:
property
- to lookupdefaultValue
- is the value if the property isnt found- Returns:
- Value of configuration parameter or the default value (will trim the value)
-
retrieveDbProfile
get a profile by name. if "grouper" then get the hibernate db connection specify the db connection with user, pass, url, and driver class the string after "db." is the name of the connection, and it should not have spaces or other special chars in it db.warehouse.user = mylogin db.warehouse.pass = secret db.warehouse.url = jdbc:mysql://localhost:3306/grouper- Parameters:
name
-- Returns:
- the db
-
parseLdapBaseDnFromUrlConfig
get the base dn from the URL, e.g. ldaps://server/baseDn would return baseDn- Parameters:
ldapServerId
-- Returns:
- base dn or null if none
-
retrieveConfig
retrieve a config from the config file or from cache- Returns:
- the config object
-
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:
-