public interface FileStorageManager
Defines the services used by the file attachment component.
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
Saves the given multipart file.
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
Reads the file content and stores the result in the given HTTP response instance.
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 - 2018 edorasware ag. All Rights Reserved.