public class FileAPI extends ASubAPI
Constructor and Description |
---|
FileAPI() |
Modifier and Type | Method and Description |
---|---|
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> |
getFileData(UserContext uc,
T entity) |
<T extends IFileEntity<?,?>> |
getFileEntityData(UserContext uc,
T fileEntity) |
<T extends IFileEntity<?,?>> |
getFileEntityStream(UserContext uc,
T fileEntity) |
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> |
getFileStream(UserContext uc,
T entity)
Method for downloading a file by the
Attachment ID. |
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> |
getUncachedFileData(UserContext uc,
T entity) |
<T extends IFileEntity<?,?>> |
getUncachedFileEntityData(UserContext uc,
T fileEntity) |
<E extends IFileDataEntity<?>,T extends IFileEntity<?,E>> |
updateFileData(UserContext uc,
T entity,
byte[] data) |
getHandlerProvider
public <E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> InputStream getFileStream(UserContext uc, T entity) throws FileNotFoundException
Attachment
ID.uc
- UserContext
the user context in which the action is to be performed.entity
- IFileDataEntity
the searched file.InputStream
on the searched file.FileNotFoundException
- if the file operation couldn't executed successful and a error occurs.public <T extends IFileEntity<?,?>> InputStream getFileEntityStream(UserContext uc, T fileEntity) throws FileNotFoundException
FileNotFoundException
public <E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> byte[] getFileData(UserContext uc, T entity) throws IOException
IOException
public <T extends IFileEntity<?,?>> byte[] getFileEntityData(UserContext uc, T fileEntity) throws IOException
IOException
public <E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> byte[] getUncachedFileData(UserContext uc, T entity)
public <T extends IFileEntity<?,?>> byte[] getUncachedFileEntityData(UserContext uc, T fileEntity)
public <E extends IFileDataEntity<?>,T extends IFileEntity<?,E>> T updateFileData(UserContext uc, T entity, byte[] data)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.