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
,ClientPortalConfigFile
,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
Fields Modifier and Type Field Description static String
ATTR_CREATED_TIMESTAMP
static String
ATTR_ENTITY
static String
ATTR_FILE_NAME
static String
ATTR_FILE_SIZE
static String
ATTR_MIME_TYPE
static String
ATTR_MODIFIED_TIMESTAMP
static String
ATTR_USER_NAME_CREATED
static String
ATTR_USER_NAME_MODIFIED
static String
COL_CREATED_TIMESTAMP
static String
COL_ENTITY_ID
static String
COL_FILE_NAME
static String
COL_FILE_SIZE
static String
COL_MIME_TYPE
static String
COL_MODIFIED_TIMESTAMP
static String
COL_USER_NAME_CREATED
static String
COL_USER_NAME_MODIFIED
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TBase
getBaseEntity()
Instant
getCreatedInstant()
Gets the created timestampString
getCreatorName()
Gets the name of the person which created the fileTData
getDataEntity()
Gets the entity holding the actual data of the file.String
getFileName()
Gets the file nameint
getFileSize()
Gets the file sizeString
getMimeType()
Gets the MIME type of this file.Instant
getModifiedInstant()
Gets the modified timestampString
getModifierName()
Gets the name of the person which last modified the filevoid
setBaseEntity(TBase baseEntity)
void
setCreatedInstant(Instant createdInstant)
Sets the created timestampvoid
setCreatorName(String creatorName)
Sets the name of the person which created the filevoid
setData(byte[] data)
Sets the actual data of the file.void
setFileName(String fileName)
Sets the file namevoid
setFileSize(int fileSize)
Sets the file sizevoid
setMimeType(String mimeType)
Sets the MIME type of this file.void
setModifiedInstant(Instant modifiedInstant)
Sets the modified timestampvoid
setModifierName(String modifierName)
Sets the name of the person which last modified the file-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
entityHasChanged, getLockingVersion, setLockingVersion
-
Methods inherited from interface de.xima.fc.entities.interfaces.ILockingVersionProviding
getLockingVersion
-
Methods inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
getUUID, getUUIDObject, setUUID
-
-
-
-
Field Detail
-
COL_ENTITY_ID
static final String COL_ENTITY_ID
- See Also:
- Constant Field Values
-
COL_FILE_NAME
static final String COL_FILE_NAME
- See Also:
- Constant Field Values
-
COL_FILE_SIZE
static final String COL_FILE_SIZE
- See Also:
- Constant Field Values
-
COL_MIME_TYPE
static final String COL_MIME_TYPE
- See Also:
- Constant Field Values
-
COL_CREATED_TIMESTAMP
static final String COL_CREATED_TIMESTAMP
- See Also:
- Constant Field Values
-
COL_MODIFIED_TIMESTAMP
static final String COL_MODIFIED_TIMESTAMP
- See Also:
- Constant Field Values
-
COL_USER_NAME_CREATED
static final String COL_USER_NAME_CREATED
- See Also:
- Constant Field Values
-
COL_USER_NAME_MODIFIED
static final String COL_USER_NAME_MODIFIED
- See Also:
- Constant Field Values
-
ATTR_ENTITY
static final String ATTR_ENTITY
- See Also:
- Constant Field Values
-
ATTR_FILE_NAME
static final String ATTR_FILE_NAME
- See Also:
- Constant Field Values
-
ATTR_FILE_SIZE
static final String ATTR_FILE_SIZE
- See Also:
- Constant Field Values
-
ATTR_MIME_TYPE
static final String ATTR_MIME_TYPE
- See Also:
- Constant Field Values
-
ATTR_CREATED_TIMESTAMP
static final String ATTR_CREATED_TIMESTAMP
- See Also:
- Constant Field Values
-
ATTR_MODIFIED_TIMESTAMP
static final String ATTR_MODIFIED_TIMESTAMP
- See Also:
- Constant Field Values
-
ATTR_USER_NAME_CREATED
static final String ATTR_USER_NAME_CREATED
- See Also:
- Constant Field Values
-
ATTR_USER_NAME_MODIFIED
static final String ATTR_USER_NAME_MODIFIED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseEntity
TBase getBaseEntity()
-
setBaseEntity
void setBaseEntity(TBase baseEntity)
-
getFileName
String getFileName()
Gets the file name- Returns:
- the file name
-
setFileName
void setFileName(String fileName)
Sets the file name- Parameters:
fileName
- the file name to set
-
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
String getMimeType()
Gets the MIME type of this file.- Returns:
- the MIME type
-
setMimeType
void setMimeType(String mimeType)
Sets the MIME type of this file.- Parameters:
mimeType
- to set.
-
getCreatedInstant
Instant getCreatedInstant()
Gets the created timestamp- Returns:
- the created timestamp
-
setCreatedInstant
void setCreatedInstant(Instant createdInstant)
Sets the created timestamp- Parameters:
createdInstant
- the created timestamp to set
-
getModifiedInstant
Instant getModifiedInstant()
Gets the modified timestamp- Returns:
- the modified timestamp
-
setModifiedInstant
void setModifiedInstant(Instant modifiedInstant)
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
void setCreatorName(String creatorName)
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
void setModifierName(String modifierName)
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
TData getDataEntity()
Gets the entity holding the actual data of the file.- Returns:
- the data entity
-
setData
void setData(byte[] data)
Sets the actual data of the file.- Parameters:
data
- to set in binary form.
-
-