Interface I18nContribution
-
- All Superinterfaces:
Contribution
,Instance<Contribution>
,LocalizedResource
,Nameable
,Securable
,Serializable
,SilverpeasResource
,Translatable
- All Known Implementing Classes:
Document
,NodeDetail
,PublicationDetail
public interface I18nContribution extends Contribution, LocalizedResource
An internationalized contribution. It supports different languages and regional specificity (i18n). Any contribution supporting the translation of some of its properties in different language should implement this interface. The peculiar characteristic of such a contribution is that it can have one or more versions of itself in different languages supported by Silverpeas. So, the translation of itself can be also obtained not only as a translation but also as a localized contribution.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ContributionIdentifier
getIdentifier()
Gets the unique identifier of this contribution.default LocalizedContribution
getLocalizationIn(String language)
Gets a version of itself in the specified language.-
Methods inherited from interface org.silverpeas.core.contribution.model.Contribution
canBeAccessedBy, getContributionType, getDescription, getModel, getName, getResourcePath, getTitle, isIndexable
-
Methods inherited from interface org.silverpeas.core.i18n.LocalizedResource
getTranslation
-
Methods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy, canBeModifiedBy
-
Methods inherited from interface org.silverpeas.core.SilverpeasResource
getCreationDate, getCreator, getLastUpdateDate, getLastUpdater
-
-
-
-
Method Detail
-
getIdentifier
ContributionIdentifier getIdentifier()
Gets the unique identifier of this contribution.- Specified by:
getIdentifier
in interfaceContribution
- Specified by:
getIdentifier
in interfaceSilverpeasResource
- Returns:
- the unique identifier of the contribution.
-
getLocalizationIn
default LocalizedContribution getLocalizationIn(String language)
Gets a version of itself in the specified language.- Parameters:
language
- the ISO 639-1 code of the language.- Returns:
- the localized version of this i18n contribution in the specified language.
-
-