Interface IElFinderFileUrlCreator<Entry extends IFileSystemEntry<?>>

  • Type Parameters:
    Entry - Common super type of all file system entries.
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    FindCommandElFinderUrlCreator
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IElFinderFileUrlCreator<Entry extends IFileSystemEntry<?>>
    extends Serializable
    Creates URLs for files on the file system, used by the elFinder feature. ElFinder is a JavaScript file manager.
    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • createFileUrl

        String createFileUrl​(Entry file,
                             ICommonFileSystemManager<Entry> fileSystemManager)
        Creates a URL for the given file. A GET request to this URL should return the file content.
        Parameters:
        file - The file for which to create the URL.
        fileSystemManager - The file system manager for the entries.
        Returns:
        The URL for the file. null if no URL can be created.