AvailableTranslations
pojo which is not backed by a jcr node instead and does NOT
extend from HippoItem
and does not implement HippoBean
at all@Deprecated @Indexable(ignore=true) @Node(jcrType="hippotranslation:translations") public class HippoAvailableTranslations<K extends HippoBean> extends HippoItem implements HippoAvailableTranslationsBean<K>
HippoTranslation
, we use for the current class a name
that might be unexpected wrt to its backing primary node type name, namely 'hippotranslation:translations'HippoItem.ComparatorMap
HippoAvailableTranslationsBean.NoopTranslationsBean<K extends HippoBean>
comparePath, detached, localizedName, name, node, objectConverter, path, valueProvider
Constructor and Description |
---|
HippoAvailableTranslations()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getAvailableLocales()
Deprecated.
It returns the available translations.
|
K |
getTranslation(String locale)
Deprecated.
|
List<K> |
getTranslations()
Deprecated.
|
boolean |
hasTranslation(String locale)
Deprecated.
|
void |
setBeanMappingClass(Class<K> beanMappingClass)
Deprecated.
Sets the
beanMappingClass for this HippoAvailableTranslationsBean . |
attach, compareTo, detach, equalCompare, equals, getAvailableTranslations, getAvailableTranslationsBean, getBean, getBean, getCanonicalBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getComparePath, getContextualBean, getContextualParentBean, getEqualComparator, getIdentifier, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getObjectConverter, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, hashCode, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf, setComparePath, setIdentifier, setLocalizedName, setName, setNode, setObjectConverter, setPath
public List<String> getAvailableLocales()
HippoAvailableTranslationsBean
getAvailableLocales
in interface HippoAvailableTranslationsBean<K extends HippoBean>
List
of available locale's and an empty List
is no locale's are presentpublic K getTranslation(String locale)
getTranslation
in interface HippoAvailableTranslationsBean<K extends HippoBean>
locale
- the locale for the translationK
for locale
and null
if not presentpublic List<K> getTranslations()
getTranslations
in interface HippoAvailableTranslationsBean<K extends HippoBean>
K
's and an empty List
if no translations foundpublic boolean hasTranslation(String locale)
hasTranslation
in interface HippoAvailableTranslationsBean<K extends HippoBean>
true
when the translation for locale
is presentpublic void setBeanMappingClass(Class<K> beanMappingClass)
beanMappingClass
for this HippoAvailableTranslationsBean
. Only translations of type
beanMappingClass
will be returnedbeanMappingClass
- the type of class the available translations should be offCopyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.