public interface FileStorageManager
| Modifier and Type | Method and Description |
|---|---|
void |
readFileIntoHttpResponse(String contentReferenceId,
String previewType,
Integer thumbnailMaxHeight,
javax.servlet.http.HttpServletResponse response)
Reads the file content and stores the result in the given HTTP response instance.
|
com.google.common.collect.ImmutableMap<String,Object> |
saveFile(String fileName,
String originalName,
com.google.common.net.MediaType contentType,
long size,
InputStream contentInputStream)
Saves the given multipart file.
|
com.google.common.collect.ImmutableMap<String,Object> saveFile(String fileName, String originalName, com.google.common.net.MediaType contentType, long size, InputStream contentInputStream) throws IOException
fileName - file nameoriginalName - original file namecontentType - conten typesize - content sizecontentInputStream - content input streamIOException - if the content could not be savedvoid readFileIntoHttpResponse(String contentReferenceId, String previewType, Integer thumbnailMaxHeight, javax.servlet.http.HttpServletResponse response) throws IOException
contentReferenceId - the content reference IDpreviewType - the requested preview typethumbnailMaxHeight - the requested maximum thumbnail heightresponse - the response to receive the file contentIOException - the content could not be retrievedCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.