Interface ILocalizedDatabaseObject<TData extends Serializable, Id extends Serializable & Comparable<Id>>
- Type Parameters:
TData- type of the localized data. This may be a String, a file object or any other type of data.Id- Type of the primary key.
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ILocalization<TBase,Id>, ILocalizedScopedFileMetaEntity<TBase, TData>, IScopedLocalizedDatabaseObject<TData, Id>
- All Known Implementing Classes:
ALocalization, ALocalizedScopedFileMetaEntity, ClientAuthenticatorLocalization, EndUserStateLocalization, ProjectFile, ProjectLocalization, ProjectPortalTagLocalization, SystemAuthenticatorLocalization, UserPortalFile, UserPortalLocalization
public interface ILocalizedDatabaseObject<TData extends Serializable, Id extends Serializable & Comparable<Id>>
extends Serializable
Common interface for localized database objects. The localization of the database object is determined by its
language tag.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetData()Gets the localized data.@NotBlank StringGets the language this database object is localized for in form of its language tag.default @NotNull LocaleGets the locale for which this entity is localized.voidsetLanguageTag(String languageTag) Sets the tag of the language this database object is localized for.default voidSets the locale for which this entity is localized.
-
Field Details
-
COL_LANGUAGE_TAG
- See Also:
-
ATTR_LANGUAGE_TAG
- See Also:
-
-
Method Details
-
getLanguageTag
Gets the language this database object is localized for in form of its language tag.- Returns:
- the language tag
-
setLanguageTag
Sets the tag of the language this database object is localized for.- Parameters:
languageTag- the language tag to set
-
getLocale
Gets the locale for which this entity is localized.- Returns:
- the locale or
nullif this entity is the default localization.
-
setLocale
Sets the locale for which this entity is localized. The locale may benullfor setting the default localization.- Parameters:
locale- the locale to set.
-
getData
-