Class ElFinderDynamicResourceFileEntityThumbnails
- java.lang.Object
-
- de.xima.fc.gui.elfinder.ElFinderDynamicResourceFileEntityThumbnails
-
public final class ElFinderDynamicResourceFileEntityThumbnails extends Object
A thumbnail generator for the elFinder file manager.Generates thumbnails for
file system entries
from aICommonFileSystem
, with initial data from aIFileEntity
stored in a database. It offers two related features, aElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder
and aElFinderDynamicResourceFileEntityThumbnails.RequestHandlerBuilder
.ElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder
creates a URL for the thumbnail, using PrimeFaces' dynamic resource feature, seeDynamicContentSrcBuilder
andDynamicContentHandler
.ElFinderDynamicResourceFileEntityThumbnails.RequestHandlerBuilder
creates a handler for processing requests to the dynamic resource servlet. It finds or generates the thumbnail image and writes it to the response.The thumbnail may come from two sources: either directly from the file, in case the file was not
yet changed
; or directly from theICommonFileSystem
in case the file has unsaved changes.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElFinderDynamicResourceFileEntityThumbnails.BaseBuilder<Entry extends IFileSystemEntry<?>>
Base builder for generating thumbnail URLs via the dynamic resource servlet and handling requests to that servlet.static class
ElFinderDynamicResourceFileEntityThumbnails.RequestHandlerBuilder<Entry extends IFileSystemEntry<?>,FileEntity extends IFileEntity<?,?>>
A builder for a thumbnail request handler for file system entries from aICommonFileSystem
, with initial data from aIFileEntity
stored in a database.static class
ElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder<Entry extends IFileSystemEntry<?>>
A builder for a URL creator that generates URLs for thumbnails of file system entries from aICommonFileSystem
, with initial data from aIFileEntity
stored in a database.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Entry extends IFileSystemEntry<?>>
ElFinderDynamicResourceFileEntityThumbnails.BaseBuilder<Entry>builder(IElFinderHashCodec fileHashCodec)
Creates a new base builder for generating thumbnail URLs via the dynamic resource servlet and handling requests to that servlet.
-
-
-
Method Detail
-
builder
public static <Entry extends IFileSystemEntry<?>> ElFinderDynamicResourceFileEntityThumbnails.BaseBuilder<Entry> builder(IElFinderHashCodec fileHashCodec)
Creates a new base builder for generating thumbnail URLs via the dynamic resource servlet and handling requests to that servlet. The base builder lets you configure options that are common toElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder
andElFinderDynamicResourceFileEntityThumbnails.RequestHandlerBuilder
. UseurlGenerator
orrequestHandler
to continue with the specific builder.- Type Parameters:
Entry
- Common super type of all file system entries.- Parameters:
fileHashCodec
- The file hash codec to use.- Returns:
- A new base builder for creating a thumbnail generator.
-
-