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:
ClientPortalConfig,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 providinglocalized files.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_FILES
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddFile(TMeta file)Adds the given file to this base entity.List<TMeta>getFiles()Gets the file entities.default List<TMeta>getFiles(Locale locale)Gets the scoped files by language.default voidremoveFile(TMeta file)Removes the given file from this base entity.voidsetFiles(List<TMeta> files)Sets the file entities.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
ATTR_FILES
static final String ATTR_FILES
- See Also:
- Constant Field Values
-
-
Method Detail
-
setFiles
void setFiles(List<TMeta> files)
Sets the file entities.- Parameters:
files- the file entities to set.
-
getFiles
default List<TMeta> getFiles(Locale locale)
Gets the scoped files by language. For ordering seegetFiles().- Parameters:
locale- providing the language to get the files for.- Returns:
- the scoped files by language.
-
addFile
default void addFile(TMeta file)
Adds the given file to this base entity.- Parameters:
file- to add
-
removeFile
default void removeFile(TMeta file)
Removes the given file from this base entity.- Parameters:
file- to remove
-
-