public interface FileStorageManager
Defines the services used by the file attachment component.
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
readFile(String contentReferenceId,
String previewType,
Integer thumbnailMaxHeight)
Reads the file content and stores the result in the given HTTP response instance.
|
com.google.common.collect.ImmutableMap<String,Object> |
saveFile(MediaResource mediaResource)
Saves the given media resource.
|
com.google.common.collect.ImmutableMap<String,Object> saveFile(MediaResource mediaResource)
Saves the given media resource.
mediaResource
- the media resource that needs to be savedorg.springframework.http.ResponseEntity<org.springframework.core.io.Resource> readFile(String contentReferenceId, String previewType, Integer thumbnailMaxHeight)
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 heightCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.