public class DefaultI18NAuthoringSupport extends Object implements I18NAuthoringSupport
I18NAuthoringSupport
.Constructor and Description |
---|
DefaultI18NAuthoringSupport() |
DefaultI18NAuthoringSupport(info.magnolia.cms.i18n.I18nContentSupport i18nContentSupportProvider,
javax.inject.Provider<info.magnolia.context.Context> contextProvider) |
Modifier and Type | Method and Description |
---|---|
String |
createI18NURI(javax.jcr.Node node,
Locale locale) |
String |
deriveLocalisedPropertyName(String base,
Locale locale) |
Locale |
getAuthorLocale()
Deprecated.
|
List<Locale> |
getAvailableLocales()
Stub method implementation always returning English and German as available languages.
|
List<Locale> |
getAvailableLocales(com.vaadin.v7.data.Item item) |
List<Locale> |
getAvailableLocales(javax.jcr.Node node)
Returns the available locales for the given page, area or component node.
|
Locale |
getDefaultLocale()
Stub method implementation always treating English as default locale.
|
Locale |
getDefaultLocale(com.vaadin.v7.data.Item item) |
Locale |
getDefaultLocale(javax.jcr.Node node) |
void |
i18nize(com.vaadin.ui.HasComponents fieldContainer,
Locale locale) |
boolean |
isDefaultLocale(Locale locale,
com.vaadin.v7.data.Item item) |
boolean |
isEnabled() |
void |
setAuthorLocale(Locale locale)
Deprecated.
|
void |
setEnabled(boolean enabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDefaultLocale, isDefaultLocale
public DefaultI18NAuthoringSupport()
public DefaultI18NAuthoringSupport(info.magnolia.cms.i18n.I18nContentSupport i18nContentSupportProvider, javax.inject.Provider<info.magnolia.context.Context> contextProvider)
public List<Locale> getAvailableLocales(javax.jcr.Node node)
i18nContentSupport
,
i.e. as configured in /server/i18n/content/locales, regardless of the passed node.getAvailableLocales
in interface I18NAuthoringSupport
null
otherwise.public Locale getDefaultLocale(javax.jcr.Node node)
getDefaultLocale
in interface I18NAuthoringSupport
public String deriveLocalisedPropertyName(String base, Locale locale)
deriveLocalisedPropertyName
in interface I18NAuthoringSupport
public List<Locale> getAvailableLocales()
I18NAuthoringSupport
getAvailableLocales
in interface I18NAuthoringSupport
an empty list
otherwise.public Locale getDefaultLocale()
I18NAuthoringSupport
getDefaultLocale
in interface I18NAuthoringSupport
MgnlContext.getLocale()
otherwise.public List<Locale> getAvailableLocales(com.vaadin.v7.data.Item item)
getAvailableLocales
in interface I18NAuthoringSupport
public Locale getDefaultLocale(com.vaadin.v7.data.Item item)
getDefaultLocale
in interface I18NAuthoringSupport
public boolean isDefaultLocale(Locale locale, com.vaadin.v7.data.Item item)
isDefaultLocale
in interface I18NAuthoringSupport
public void i18nize(com.vaadin.ui.HasComponents fieldContainer, Locale locale)
i18nize
in interface I18NAuthoringSupport
public String createI18NURI(javax.jcr.Node node, Locale locale)
createI18NURI
in interface I18NAuthoringSupport
public boolean isEnabled()
public void setEnabled(boolean enabled)
@Deprecated public Locale getAuthorLocale()
getAuthorLocale
in interface I18NAuthoringSupport
@Deprecated public void setAuthorLocale(Locale locale)
Copyright © 2019 Magnolia International Ltd.. All rights reserved.