Package de.xima.fc.gui.common.bean.file
Class FileDataBean
- java.lang.Object
-
- de.xima.fc.gui.common.bean.file.FileDataBean
-
- All Implemented Interfaces:
Serializable
@Named @RequestScoped public class FileDataBean extends Object implements Serializable
General bean for accessing file data of file providing entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileDataBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ITransferableEntity & IFileEntity<?,?>>
StringgetCacheParameter(T fileEntity)
<F extends IFileEntity<?,?>>
byte[]getFileData(F fileEntity)
<F extends IFileEntity<?,?>>
InputStreamgetFileStream(F fileEntity)
org.primefaces.model.StreamedContent
getFileStreamedContent()
String
getFileType(IFileEntity<?,?> fileEntity)
-
-
-
Method Detail
-
getFileData
public <F extends IFileEntity<?,?>> byte[] getFileData(F fileEntity)
-
getFileStream
public <F extends IFileEntity<?,?>> InputStream getFileStream(F fileEntity)
-
getCacheParameter
public <T extends ITransferableEntity & IFileEntity<?,?>> String getCacheParameter(T fileEntity)
-
getFileStreamedContent
public org.primefaces.model.StreamedContent getFileStreamedContent()
-
getFileType
public String getFileType(IFileEntity<?,?> fileEntity)
-
-