Class FormThemeEditModeAdvancedModel

  • All Implemented Interfaces:
    AutoCloseable

    public final class FormThemeEditModeAdvancedModel
    extends Object
    implements AutoCloseable
    Model with additional data for the selected client form theme, such as a list of files that can be edited. This model * is used when the edit mode is set to EFormThemeEditMode.ADVANCED.
    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • FormThemeEditModeAdvancedModel

        public FormThemeEditModeAdvancedModel​(String explorerSessionId,
                                              IUser user,
                                              Mandant client)
        Creates a new model for advanced edit mode, that lets the user edit all files in a file explorer.
        Parameters:
        explorerSessionId - ID of the explorer session, usually bound to the lifecycle of the backing view scoped bean.
        user - The current user, used e.g. when new files are created.
        client - The current client who owns the form themes to edit.
    • Method Detail

      • connector

        public FileSystemElFinderConnector<?> connector()
        Gets the connector for the elFinder file explorer. The connector is used to handle requests from the explorer.
        Returns:
        The connector for the elFinder file explorer.
      • fileSystemManager

        public FormThemeFileSystemManager fileSystemManager()
        Gets the file system that grants access to the files in the current form theme.
        Returns:
        The file system for the current form theme.
      • getCurrentFolder

        public String getCurrentFolder()
        Gets the current folder in the file manager. Used to preserve the currently opened folder when the component is updated via AJAX requests.
        Returns:
        The current folder.
      • setCurrentFolder

        public void setCurrentFolder​(String currentFolder)
        Sets the current folder in the file manager. Used to preserve the currently opened folder when the component is updated via AJAX requests.
        Parameters:
        currentFolder - The current folder.
      • resourceStoreManager

        public IResourceStoreManager resourceStoreManager()
        Gets the versioned store manager for associating additional data with e.g. files.
        Returns:
        The versioned store manager.
      • thumbnailRequestHandler

        public IDynamicResourceThumbnailRequestHandler<FormThemeFileEntry> thumbnailRequestHandler()
        Gets the handler for thumbnail URLs. Handles requests by generating the thumbnail for the requested image file from the file system.
        Returns:
        The thumbnail request handler.