public interface I18nContentSupport
Modifier and Type | Method and Description |
---|---|
Locale |
determineLocale()
This method uses the current agregation state to set the locale used for the rendering process .
|
Locale |
getDefaultLocale() |
Locale |
getFallbackLocale()
The default locale to be used.
|
Locale |
getLocale()
Get the current locale used for rendering content.
|
Collection<Locale> |
getLocales()
Returns the available locales.
|
javax.jcr.Node |
getNode(javax.jcr.Node node,
String name)
Returns named localized child (if exists) of provided node (or non localized in case localized child doesn't exist).
|
javax.jcr.Property |
getProperty(javax.jcr.Node node,
String name)
Returns localized property of given name and current locale.
|
javax.jcr.Property |
getProperty(javax.jcr.Node node,
String name,
Locale locale)
Returns localized property of given named and given locale.
|
boolean |
hasProperty(javax.jcr.Node node,
String name)
Returns true if localized property or default property exists false if there is no variation of property for any locale.
|
boolean |
isEnabled() |
void |
setFallbackLocale(Locale fallbackLocale) |
void |
setLocale(Locale locale) |
String |
toI18NURI(String uri)
Transform the internal uri to a i18n uri.
|
String |
toRawURI(String i18nURI)
Remove all i18n tokens form the uri.
|
Locale getLocale()
void setLocale(Locale locale)
Locale getFallbackLocale()
void setFallbackLocale(Locale fallbackLocale)
String toI18NURI(String uri)
String toRawURI(String i18nURI)
Locale determineLocale()
javax.jcr.Node getNode(javax.jcr.Node node, String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.Property getProperty(javax.jcr.Node node, String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
boolean hasProperty(javax.jcr.Node node, String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.Property getProperty(javax.jcr.Node node, String name, Locale locale) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Collection<Locale> getLocales()
boolean isEnabled()
Locale getDefaultLocale()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.