Package de.xima.fc.gui.bean.form_theme
Class FormThemeExplorerBean
- java.lang.Object
-
- de.xima.fc.gui.bean.form_theme.FormThemeExplorerBean
-
- All Implemented Interfaces:
Serializable
@Named("formThemeExplorerBean") @RequestScoped public class FormThemeExplorerBean extends Object implements Serializable
Controller bean for the file manager tab of the client form theme backend UI. The file manager lets the user edit the client form theme files.The file explorer needs an HTTP endpoint for communicating with the server. We cannot use a PrimeFaces remote command, as that puts certain restrictions on the request and response. Instead, we use PrimeFaces's dynamic resource mechanism to create an HTTP endpoint for the file explorer. The dynamic resource mechanism invokes a bean method, but requires the bean to be request scoped. This bean contains the methods that are called by the file explorer.
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormThemeExplorerBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.primefaces.model.StreamedContent
elFinderConnector()
Server side endpoint for the elfinder file manager.org.primefaces.model.StreamedContent
elFinderThumbnail()
Reads and returns the thumbnail for the specified client form theme file.
-
-
-
Method Detail
-
elFinderConnector
public org.primefaces.model.StreamedContent elFinderConnector()
Server side endpoint for the elfinder file manager. See Client-Server-API-2.1- Returns:
- The streamed content with the response to the elfinder request.
-
elFinderThumbnail
public org.primefaces.model.StreamedContent elFinderThumbnail()
Reads and returns the thumbnail for the specified client form theme file.- Returns:
- The streamed content with the thumbnail image.
-
-