Class ElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder<Entry extends IFileSystemEntry<?>>

    • Method Detail

      • fileEntityIdFinder

        public <FileEntity extends IFileEntity<?,​?>> ElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder<Entry> fileEntityIdFinder​(Iterable<FileEntity> fileEntities,
                                                                                                                                                     Function<? super FileEntity,​? extends IFileSystemEntry<?>> fileEntryFactory)
        Extracts a file entry from the file entity and then set the file entity ID finder to one that maps from that file entry back to the entity ID.
        Type Parameters:
        FileEntity - The type of the file entity.
        Parameters:
        fileEntities - The file entities to find the IDs for.
        fileEntryFactory - The function to create the file system entry from the file entity.
        Returns:
        This builder for chaining method calls.
      • methodExpression

        public ElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder<Entry> methodExpression​(String methodExpression)
        Sets them method expression to use for the dynamic resource URL. This method expression is invoked when the URL is accessed. Note that you should not access view scoped beans in the method expression, as no view scope is available during resource requests. Usually, you should use a request scoped bean. Defaults to null (but you probably want to set this).
        Parameters:
        methodExpression - The method expression to use.
        Returns:
        This builder for chaining method calls.
      • paramNameSessionId

        public ElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder<Entry> paramNameSessionId​(String paramNameSessionId)
        Sets the name of the session ID parameter. The session ID is added only when the file has unsaved changes. Otherwise, no request ID is added, and the content should be read directly from the file entity. Defaults to elfinder_sid.
        Parameters:
        paramNameSessionId - The name of the session ID parameter.
        Returns:
        This builder for chaining method calls.
      • sessionId

        public ElFinderDynamicResourceFileEntityThumbnails.UrlGeneratorBuilder<Entry> sessionId​(String sessionId)
        Sets the value for the session ID parameter. The session ID is added only when the file has unsaved changes. Otherwise, no request ID is added, and the content should be read directly from the file entity.
        Parameters:
        sessionId - The session ID to use.
        Returns:
        This builder for chaining method calls.