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 String
in the text file, terms must start with this prefix.static final String
in the text file, tooltips must start with this prefix.static final String
target a tooltip on a certain messagestatic final String
target 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 void
void
protected String
protected String
protected String
protected String
static void
protected ConfigPropertiesCascadeBase
see if there is one in cache, if so, use it, if not, get from config filesprotected ConfigPropertiesCascadeBase
static GrouperUiApiTextConfig
retrieveText
(Locale locale) text config for a certain localestatic GrouperUiApiTextConfig
text config for this user's localestatic GrouperUiApiTextConfig
text config for this user's localestatic GrouperUiApiTextConfig
text config for this user's localestatic void
servletRequestThreadLocalAssign
(javax.servlet.ServletRequest servletRequest) assign thread local from filterstatic void
clea 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:
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:
-
retrieveFromConfigFileOrCache
see if there is one in cache, if so, use it, if not, get from config files- Overrides:
retrieveFromConfigFileOrCache
in classConfigPropertiesCascadeBase
- Returns:
- the config from file or cache
-
retrieveFromConfigFiles
- Overrides:
retrieveFromConfigFiles
in 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
-