Class GrouperUiApiTextConfig
java.lang.Object
edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
edu.internet2.middleware.grouperClient.config.GrouperUiApiTextConfig
save the text bundle for the session. Determine it based on
the language and locale of the browser
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.ConfigFile, ConfigPropertiesCascadeBase.ConfigFileType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringin the text file, terms must start with this prefix.static final Stringin the text file, tooltips must start with this prefix.static final Stringtarget a tooltip on a certain messagestatic final Stringtarget a tooltip on a certain message, and make the value of the tooltip a reference to another tooltip -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidif there are things that are calculated, clear them out (e.g. if an override is set)protected Stringconfig key of the hierarchy valueprotected Stringget the main config classpath, e.g. grouper.propertiesprotected Stringget the example config classpath, e.g. grouper.example.propertiesprotected Stringconfig key of the time in seconds to check configstatic voidprotected ConfigPropertiesCascadeBasesee if there is one in cache, if so, use it, if not, get from config filesprotected ConfigPropertiesCascadeBaseget the config object from config filesstatic GrouperUiApiTextConfigretrieveText(Locale locale) text config for a certain localestatic GrouperUiApiTextConfigtext config for this user's localestatic GrouperUiApiTextConfigtext config for this user's localestatic GrouperUiApiTextConfigtext config for this user's localestatic voidservletRequestThreadLocalAssign(javax.servlet.ServletRequest servletRequest) assign thread local from filterstatic voidclea thread localinit and return the tooltip keysinit and return the tooltip keysMethods inherited from class edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
assertPropertyValueBoolean, assertPropertyValueClass, assertPropertyValueRequired, assignInitted, 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, retrieveFromConfigFiles, substituteCommonVars, substituteLocalReferencesAndUnicode, substituteLocalReferencesOneField, substituteLocalReferencesOneSubstitution, substituteUnicode
-
Field Details
-
TERM_PREFIX
in the text file, terms must start with this prefix. multiple terms can exist for one tooltip- See Also:
-
TOOLTIP_PREFIX
in the text file, tooltips must start with this prefix. there should be one and only one tooltip for a term. tooltips and terms are linked by the common name, which is the suffix of the text file key. e.g. tooltip.group=A group is a collection term.group=Group term.group=group these are linked because they all end in "group"- See Also:
-
TOOLTIP_TARGETTED_PREFIX
target a tooltip on a certain message- See Also:
-
TOOLTIP_TARGETTED_REF_PREFIX
target a tooltip on a certain message, and make the value of the tooltip a reference to another tooltip- See Also:
-
-
Constructor Details
-
GrouperUiApiTextConfig
public GrouperUiApiTextConfig()
-
-
Method Details
-
clearCache
public static void clearCache() -
main
- Parameters:
args-- Throws:
Exception
-
retrieveTextConfigEnUs
text config for this user's locale- Returns:
- the config for this user's locale
-
retrieveTextConfigFrFr
text config for this user's locale- Returns:
- the config for this user's locale
-
retrieveTextConfig
text config for this user's locale- Returns:
- the config for this user's locale
-
retrieveText
text config for a certain locale- Parameters:
locale-- Returns:
- the config for this user's locale
-
clearCachedCalculatedValues
public void clearCachedCalculatedValues()Description copied from class:ConfigPropertiesCascadeBaseif there are things that are calculated, clear them out (e.g. if an override is set)- Specified by:
clearCachedCalculatedValuesin classConfigPropertiesCascadeBase- See Also:
-
getHierarchyConfigKey
Description copied from class:ConfigPropertiesCascadeBaseconfig key of the hierarchy value- Specified by:
getHierarchyConfigKeyin classConfigPropertiesCascadeBase- Returns:
- the classpath of the main config file
- See Also:
-
getMainConfigClasspath
Description copied from class:ConfigPropertiesCascadeBaseget the main config classpath, e.g. grouper.properties- Specified by:
getMainConfigClasspathin classConfigPropertiesCascadeBase- Returns:
- the classpath of the main config file
- See Also:
-
getMainExampleConfigClasspath
Description copied from class:ConfigPropertiesCascadeBaseget the example config classpath, e.g. grouper.example.properties- Specified by:
getMainExampleConfigClasspathin classConfigPropertiesCascadeBase- Returns:
- the classpath of the example config file
- See Also:
-
getSecondsToCheckConfigKey
Description copied from class:ConfigPropertiesCascadeBaseconfig key of the time in seconds to check config. -1 means dont check again- Specified by:
getSecondsToCheckConfigKeyin classConfigPropertiesCascadeBase- Returns:
- config key
- See Also:
-
retrieveFromConfigFileOrCache
see if there is one in cache, if so, use it, if not, get from config files- Overrides:
retrieveFromConfigFileOrCachein classConfigPropertiesCascadeBase- Returns:
- the config from file or cache
-
retrieveFromConfigFiles
Description copied from class:ConfigPropertiesCascadeBaseget the config object from config files- Overrides:
retrieveFromConfigFilesin classConfigPropertiesCascadeBase- Returns:
- the config object
-
tooltipKeys
init and return the tooltip keys- Returns:
- the list of keys
-
tooltipValues
init and return the tooltip keys- Returns:
- the list of keys
-
servletRequestThreadLocalAssign
public static void servletRequestThreadLocalAssign(javax.servlet.ServletRequest servletRequest) assign thread local from filter- Parameters:
servletRequest-
-
servletRequestThreadLocalClear
public static void servletRequestThreadLocalClear()clea thread local
-