@Manager public class DefaultFileStorageManager extends Object implements FileStorageManager
Default implementation of the FileSotrageManager interface.
Constructor and Description |
---|
DefaultFileStorageManager(CurrentUserService currentUserService,
ContentManager contentManager,
ContentDetector contentDetector,
ThumbnailService thumbnailService,
TimeProvider timeProvider,
boolean enableVersioning) |
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.
|
public DefaultFileStorageManager(CurrentUserService currentUserService, ContentManager contentManager, ContentDetector contentDetector, ThumbnailService thumbnailService, TimeProvider timeProvider, boolean enableVersioning)
@Transactional public com.google.common.collect.ImmutableMap<String,Object> saveFile(MediaResource mediaResource)
FileStorageManager
Saves the given media resource.
saveFile
in interface FileStorageManager
mediaResource
- the media resource that needs to be saved@Transactional(readOnly=true) public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> readFile(String contentReferenceId, String previewType, Integer thumbnailMaxHeight)
FileStorageManager
Reads the file content and stores the result in the given HTTP response instance.
readFile
in interface FileStorageManager
contentReferenceId
- the content reference IDpreviewType
- the requested preview typethumbnailMaxHeight
- the requested maximum thumbnail heightCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.