Interface IFileHandler
-
- All Superinterfaces:
IAPIHandler
,IGenericHandler
,Serializable
- All Known Implementing Classes:
FileHandler
public interface IFileHandler extends IGenericHandler
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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.<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>>
byte[]getUncachedFileData(UserContext uc, Class<T> clazz, long id)
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>>
byte[]getUncachedFileData(UserContext uc, T entity)
<T extends IFileEntity<?,?>>
byte[]getUncachedFileEntityData(UserContext uc, T entity)
<E extends IFileDataEntity<?>,T extends IFileEntity<?,E>>
TupdateFileData(UserContext uc, T entity, byte[] data)
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getUncachedFileData
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> byte[] getUncachedFileData(UserContext uc, Class<T> clazz, long id)
-
getUncachedFileData
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> byte[] getUncachedFileData(UserContext uc, T entity)
-
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 typeD
- file data entity typeF
- file entity type- Parameters:
uc
- user context for database transactions.entity
- that owns the filefileKey
- key identifying the 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)
-
updateFileData
<E extends IFileDataEntity<?>,T extends IFileEntity<?,E>> T updateFileData(UserContext uc, T entity, byte[] data)
-
-