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 Details

  • Method Details

    • 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.