Class MultiFileTemporaryStorageBuffer
java.lang.Object
io.jmix.flowui.component.upload.receiver.MultiFileTemporaryStorageBuffer
- All Implemented Interfaces:
com.vaadin.flow.component.upload.MultiFileReceiver
,com.vaadin.flow.component.upload.Receiver
,Serializable
@Component("flowui_MultiFileTemporaryStorageBuffer")
@Scope("prototype")
public class MultiFileTemporaryStorageBuffer
extends Object
implements com.vaadin.flow.component.upload.MultiFileReceiver
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<UUID,
TemporaryStorageFileData> protected TemporaryStorage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected OutputStream
createFileOutputStream
(File file) getFileData
(UUID fileId) getFiles()
receiveUpload
(String fileName, String mimeType)
-
Field Details
-
temporaryStorage
-
files
-
-
Constructor Details
-
MultiFileTemporaryStorageBuffer
-
-
Method Details
-
receiveUpload
- Specified by:
receiveUpload
in interfacecom.vaadin.flow.component.upload.Receiver
-
getFileData
- Parameters:
fileId
- the UUID of the file- Returns:
- temporary file data for filename or null if not found
-
getFiles
- Returns:
- map of (UUID - id of the file, TemporaryStorageFileData - file data)
- See Also:
-
createFileOutputStream
-