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 voidvoidprotected Stringprotected Stringprotected Stringprotected Stringstatic voidprotected ConfigPropertiesCascadeBasesee if there is one in cache, if so, use it, if not, get from config filesprotected ConfigPropertiesCascadeBasestatic 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()- Specified by:
clearCachedCalculatedValuesin classConfigPropertiesCascadeBase- See Also:
-
getHierarchyConfigKey
- Specified by:
getHierarchyConfigKeyin classConfigPropertiesCascadeBase- See Also:
-
getMainConfigClasspath
- Specified by:
getMainConfigClasspathin classConfigPropertiesCascadeBase- See Also:
-
getMainExampleConfigClasspath
- Specified by:
getMainExampleConfigClasspathin classConfigPropertiesCascadeBase- See Also:
-
getSecondsToCheckConfigKey
- Specified by:
getSecondsToCheckConfigKeyin classConfigPropertiesCascadeBase- 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
- Overrides:
retrieveFromConfigFilesin classConfigPropertiesCascadeBase
-
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
-