Interface IFileHandler

    • Method Detail

      • getUncachedFileData

        <D extends IFileDataEntity<F>,​F extends IKeyDependentFileEntity<E,​D>,​E extends IFileMapProviding<F,​D>> byte[] getUncachedFileData​(UserContext uc,
                                                                                                                                                                  E entity,
                                                                                                                                                                  String fileKey)
        Returns the file data of a file belonging to the given entity with the given file key.
        Type Parameters:
        E - file map providing base entity type
        D - file data entity type
        F - file entity type
        Parameters:
        uc - user context for database transactions.
        entity - that owns the file
        fileKey - key identifying the file entity
        Returns:
        file data as a byte array of the request file.
        Since:
        8.0.0
      • getUncachedFileEntityData

        <T extends IFileEntity<?,​?>> byte[] getUncachedFileEntityData​(UserContext uc,
                                                                            T entity)
      • getUncachedFileEntityData

        <TFileMeta extends IFileMetaEntity<?,​?>> byte[] getUncachedFileEntityData​(UserContext uc,
                                                                                        TFileMeta fileEntity)
        Returns the file data of the given file entity.
        Type Parameters:
        TFileMeta - type of file entity.
        Parameters:
        uc - user context for database transactions.
        fileEntity - that owns the file data.
        Returns:
        binary data of the file or null if no data exists
        Since:
        8.2.0