public interface ThumbnailPreview
Interface for thumbnail preview strategies.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(com.google.common.net.MediaType mediaType)
Checks if the thumbnail preview is capable to create a thumbnail of the given media type.
|
Thumbnail |
createThumbnail(org.springframework.core.io.Resource resource,
int maxThumbnailHeight,
Instant lastModifiedDate)
Creates the thumbnail for the given resource and the maximum thumbnail height.
|
boolean accept(com.google.common.net.MediaType mediaType)
Checks if the thumbnail preview is capable to create a thumbnail of the given media type.
mediaType - the media type.Thumbnail createThumbnail(org.springframework.core.io.Resource resource, int maxThumbnailHeight, Instant lastModifiedDate)
Creates the thumbnail for the given resource and the maximum thumbnail height.
resource - the resource for which the thumbnail is generatedmaxThumbnailHeight - the maximum height of the thumbnail. 0 if original size should be usedlastModifiedDate - the last modified date of the thumbnailCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.