|
||||||||||
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 | |
---|---|
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). |
NodeData |
getNodeData(Content node,
String name)
Deprecated. since 4.5.4 use getProperty(Node, String) instead. |
NodeData |
getNodeData(Content node,
String name,
Locale locale)
Deprecated. since 4.5.4 use getProperty(Node, String, Locale) instead. |
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. |
Method Detail |
---|
Locale getLocale()
void setLocale(Locale locale)
Locale getFallbackLocale()
void setFallbackLocale(Locale fallbackLocale)
String toI18NURI(String uri)
String toRawURI(String i18nURI)
Locale determineLocale()
@Deprecated NodeData getNodeData(Content node, String name, Locale locale) throws javax.jcr.RepositoryException
getProperty(Node, String, Locale)
instead.
javax.jcr.RepositoryException
@Deprecated NodeData getNodeData(Content node, String name)
getProperty(Node, String)
instead.
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |