|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I18nContentSupport
Support for i18n content. Used to rewrite uris and getting nodedatas based on the current language.
Method Summary | |
---|---|
java.util.Locale |
determineLocale()
This method uses the current agregation state to set the locale used for the rendering process . |
java.util.Locale |
getFallbackLocale()
The default locale to be used. |
java.util.Locale |
getLocale()
Get the current locale used for rendering content. |
java.util.Collection<java.util.Locale> |
getLocales()
Returns the available locales. |
NodeData |
getNodeData(Content node,
java.lang.String name)
Returns the NodeData object based on the current language. |
NodeData |
getNodeData(Content node,
java.lang.String name,
java.util.Locale locale)
Returns the NodeData object based on the language passes. |
boolean |
isEnabled()
|
void |
setFallbackLocale(java.util.Locale fallbackLocale)
|
void |
setLocale(java.util.Locale locale)
|
java.lang.String |
toI18NURI(java.lang.String uri)
Transform the internal uri to a i18n uri. |
java.lang.String |
toRawURI(java.lang.String i18nURI)
Remove all i18n tokens form the uri. |
Method Detail |
---|
java.util.Locale getLocale()
void setLocale(java.util.Locale locale)
java.util.Locale getFallbackLocale()
void setFallbackLocale(java.util.Locale fallbackLocale)
java.lang.String toI18NURI(java.lang.String uri)
java.lang.String toRawURI(java.lang.String i18nURI)
java.util.Locale determineLocale()
NodeData getNodeData(Content node, java.lang.String name, java.util.Locale locale) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
NodeData getNodeData(Content node, java.lang.String name)
java.util.Collection<java.util.Locale> getLocales()
boolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |