Package io.jmix.security.impl.role
Class RoleLocalizedValuesUtils
java.lang.Object
io.jmix.security.impl.role.RoleLocalizedValuesUtils
Reads and writes a bundle of the localized values of a role, its
localizedNames or
localizedDescriptions: a Properties text whose keys are locales as
LocaleResolver.localeToString(java.util.Locale) gives them, such as en=Administrator.-
Method Summary
-
Method Details
-
read
- Returns:
- the entries of the bundle, or none for
nullor an empty bundle - Throws:
IllegalArgumentException- if the bundle cannot be read, such as one with a malformed Unicode escape
-
write
- Returns:
- the bundle of the entries, or
nullif there are none
-