public interface FileRepository
Supposed workflow:
Modifier and Type | Method and Description |
---|---|
void |
commitFile(String fileId,
String fileName,
FileContentTypeExtEnum contentType,
List<String> subFolders)
Commits saving file - the file will be moved from temporary folder to the target place.
|
boolean |
isFileIdValid(String fileId)
Is specified file ID valid identifier?
In other words is there file with specified identifier?
|
String |
saveTempFile(OutputStreamWriterCallback writerCallback)
Saves temporary file in the repository.
|
String saveTempFile(OutputStreamWriterCallback writerCallback)
writerCallback
- the callback for writing file to specified output streamboolean isFileIdValid(String fileId)
fileId
- the file IDtrue
if file is valid otherwise false
void commitFile(String fileId, String fileName, FileContentTypeExtEnum contentType, List<String> subFolders)
fileId
- the file identifier from saveTempFile(OutputStreamWriterCallback)
fileName
- the original file namecontentType
- the file content typesubFolders
- the collection of sub-folders which determine where is the target folder for moving the fileCopyright © 2018 Pivotal Software, Inc.. All rights reserved.