@Manager public class DefaultFileStorageManager extends Object implements FileStorageManager
Default implementation of the FileSotrageManager interface.
| Constructor and Description |
|---|
DefaultFileStorageManager(com.edorasware.commons.core.identity.CurrentUserService currentUserService,
com.edorasware.commons.core.content.ContentManager contentManager,
com.edorasware.commons.core.content.ContentDetector contentDetector,
ThumbnailService thumbnailService,
com.edorasware.api.time.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(com.edorasware.commons.core.content.MediaResource mediaResource)
Saves the given media resource.
|
public DefaultFileStorageManager(com.edorasware.commons.core.identity.CurrentUserService currentUserService,
com.edorasware.commons.core.content.ContentManager contentManager,
com.edorasware.commons.core.content.ContentDetector contentDetector,
ThumbnailService thumbnailService,
com.edorasware.api.time.TimeProvider timeProvider,
boolean enableVersioning)
@Transactional public com.google.common.collect.ImmutableMap<String,Object> saveFile(com.edorasware.commons.core.content.MediaResource mediaResource)
FileStorageManagerSaves the given media resource.
saveFile in interface FileStorageManagermediaResource - 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)
FileStorageManagerReads the file content and stores the result in the given HTTP response instance.
readFile in interface FileStorageManagercontentReferenceId - the content reference IDpreviewType - the requested preview typethumbnailMaxHeight - the requested maximum thumbnail heightCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.