Interface ILocaleProvider
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
public interface ILocaleProvider extends org.apache.wicket.util.io.IClusterable
Provider of content locale information. Available as a service in the CMS, it can be used by plugins to retrieve Locale and presentation information.The provider is made available under the "locale.id" configuration key. When this key is not present, the fully qualified class name can be used as a fall back.
Whereas the repository only depends on the name of a HippoLocale, the CMS couples this name to a Locale for presentation purposes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ILocaleProvider.HippoLocale
Description of a content locale.static class
ILocaleProvider.LocaleState
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ILocaleProvider.HippoLocale
getLocale(String name)
List<? extends ILocaleProvider.HippoLocale>
getLocales()
boolean
isKnown(String locale)
-
-
-
Field Detail
-
SERVICE_ID
static final String SERVICE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLocales
List<? extends ILocaleProvider.HippoLocale> getLocales()
-
getLocale
ILocaleProvider.HippoLocale getLocale(String name)
-
isKnown
boolean isKnown(String locale)
-
-