Interface IFileMetaEntity<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>, TData extends IFileDataEntity<?>>
- Type Parameters:
TBase- type of the base entity determines the type this file meta entity can be attached to.TData- type of the data entity that stores the actual file data.
- All Superinterfaces:
Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>, de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable
- All Known Subinterfaces:
ILocalizedScopedFileMetaEntity<TBase,TData>, IScopedFileMetaEntity<TBase, TData>
- All Known Implementing Classes:
AFileMetaEntity, ALocalizedScopedFileMetaEntity, AScopedFileMetaEntity, ProjectFile, UserPortalFile
public interface IFileMetaEntity<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>, TData extends IFileDataEntity<?>>
extends ITransferableLockableEntity, IUUIDEntity
Common interface for the metadata of a file entity
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Method Summary
Modifier and TypeMethodDescriptionGets the created timestampGets the name of the person which created the fileGets the entity holding the actual data of the file.Gets the file nameintGets the file sizeGets the MIME type of this file.Gets the modified timestampGets the name of the person which last modified the filevoidsetBaseEntity(TBase baseEntity) voidsetCreatedInstant(Instant createdInstant) Sets the created timestampvoidsetCreatorName(String creatorName) Sets the name of the person which created the filevoidsetData(byte[] data) Sets the actual data of the file.voidsetFileName(String fileName) Sets the file namevoidsetFileSize(int fileSize) Sets the file sizevoidsetMimeType(String mimeType) Sets the MIME type of this file.voidsetModifiedInstant(Instant modifiedInstant) Sets the modified timestampvoidsetModifierName(String modifierName) Sets the name of the person which last modified the fileMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
getId, isPersisted, setIdMethods inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
entityHasChanged, getLockingVersion, setLockingVersionMethods inherited from interface ILockingVersionProviding
getLockingVersionMethods inherited from interface IUUIDEntity
getUUID, getUUIDObject, setUUID
-
Field Details
-
COL_ENTITY_ID
- See Also:
-
COL_FILE_NAME
- See Also:
-
COL_FILE_SIZE
- See Also:
-
COL_MIME_TYPE
- See Also:
-
COL_CREATED_TIMESTAMP
- See Also:
-
COL_MODIFIED_TIMESTAMP
- See Also:
-
COL_USER_NAME_CREATED
- See Also:
-
COL_USER_NAME_MODIFIED
- See Also:
-
ATTR_ENTITY
- See Also:
-
ATTR_FILE_NAME
- See Also:
-
ATTR_FILE_SIZE
- See Also:
-
ATTR_MIME_TYPE
- See Also:
-
ATTR_CREATED_TIMESTAMP
- See Also:
-
ATTR_MODIFIED_TIMESTAMP
- See Also:
-
ATTR_USER_NAME_CREATED
- See Also:
-
ATTR_USER_NAME_MODIFIED
- See Also:
-
-
Method Details
-
getBaseEntity
TBase getBaseEntity() -
setBaseEntity
-
getFileName
-
setFileName
-
getFileSize
int getFileSize()Gets the file size- Returns:
- the file size
-
setFileSize
void setFileSize(int fileSize) Sets the file size- Parameters:
fileSize- the file size to set
-
getMimeType
-
setMimeType
-
getCreatedInstant
-
setCreatedInstant
Sets the created timestamp- Parameters:
createdInstant- the created timestamp to set
-
getModifiedInstant
-
setModifiedInstant
Sets the modified timestamp- Parameters:
modifiedInstant- the modified timestamp to set
-
getCreatorName
String getCreatorName()Gets the name of the person which created the file- Returns:
- the name of the person which created the file
-
setCreatorName
Sets the name of the person which created the file- Parameters:
creatorName- the name of the person which created the file to set
-
getModifierName
String getModifierName()Gets the name of the person which last modified the file- Returns:
- the name of the person which last modified the file
-
setModifierName
Sets the name of the person which last modified the file- Parameters:
modifierName- the name of the person which last modified the file to set
-
getDataEntity
-
setData
void setData(byte[] data) Sets the actual data of the file.- Parameters:
data- to set in binary form.
-