Interface ILocalizedScopedFilesProviding<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>, TMeta extends ILocalizedScopedFileMetaEntity<TBase,TData>, TData extends IFileDataEntity<TMeta>>
- Type Parameters:
TBase- type of the base entity providing thelocalized files.TMeta- type of the entity holding the file metadata.TData- type of the data entity holding the actual file data.
- All Superinterfaces:
Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>, de.xima.cmn.dao.interfaces.IEntity<Long>, Serializable
- All Known Implementing Classes:
Projekt, UserPortal
public interface ILocalizedScopedFilesProviding<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>, TMeta extends ILocalizedScopedFileMetaEntity<TBase,TData>, TData extends IFileDataEntity<TMeta>>
extends de.xima.cmn.dao.interfaces.IEntity<Long>
Common interface for entities providing
localized files.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID -
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdds the given file to this base entity.default TMetaFinds a file with a given file key for a given locale.default TDatagetFileData(String fileKey, Locale locale) Gets the file data for the given file key and locale.@NotNull LocaleGets the default locale for this providing entity.Gets all available file keys provided by this entity.Gets all available locales provided by this entity.getFiles()Gets the file entities.default voidremoveFile(TMeta file) Removes the given file from this base entity.voidSets the file entities.Methods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
getId, isPersisted, setId
-
Field Details
-
ATTR_FILES
- See Also:
-
-
Method Details
-
getFileDefaultLocale
Gets the default locale for this providing entity.- Returns:
- the default locale for this providing entity.
-
getFileKeys
-
getFileLocales
-
getFiles
-
setFiles
-
addFile
-
getFile
-
getFileData
-
removeFile
Removes the given file from this base entity.- Parameters:
file- to remove
-