Class FcSaveToWebDavBean

java.lang.Object
de.xima.fc.workflow.designer.bean.nodes.FcSaveToWebDavBean
All Implemented Interfaces:
IElementPropertiesBean<FcSaveToWebDavProps,WorkflowNode>, INodePropertiesBean<FcSaveToWebDavProps>, Serializable

@Named @ViewScoped public class FcSaveToWebDavBean extends Object implements INodePropertiesBean<FcSaveToWebDavProps>
Bean for accessing a root TreeNode for generating a output of directories
Since:
7.1.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • FcSaveToWebDavBean

      public FcSaveToWebDavBean()
  • Method Details

    • getRoot

      public org.primefaces.model.TreeNode<WebDAVTreeNodeData> getRoot()
      Returns:
      The root node for the tree with the folders that are available on the WebDAV server.
    • getWebDav

      public WebDavAccess getWebDav()
      Returns:
      The currently selected WebDavAccess entity, or null if none is selected.
    • getWebDavUrl

      public String getWebDavUrl()
      Returns:
      The full URL of the currently selected WebDavAccess, or the empty string when none is selected.
    • onClickShowFolders

      public void onClickShowFolders()
      Callback when the user clicks on the button to show the folders available on the WebDAV server. Reloads the WebDavAccess entity an queries the WebDAV server.
    • onNodeSelect

      public void onNodeSelect(org.primefaces.event.NodeSelectEvent event)
      Callback when the user clicks on a node in the tree with the existing folders. Sets the path to the folder on which the user clicked.
      Parameters:
      event - Node select event received from the framework.
    • onWebDavConnectionChange

      public void onWebDavConnectionChange()
      Callback when the user selects a different WebDAV connection. Reloads the WebDavAccess entity and clears the tree that shows with the existing folders.
    • prepareViewForElement

      public void prepareViewForElement(IElementPropInitParams<FcSaveToWebDavProps> params) throws Exception
      Description copied from interface: IElementPropertiesBean
      Called each time when the properties panel for a certain workflow element is loaded. This method is passed the workflow element and the properties model, and should perform whatever initialization is necessary in order for the user to start editing the properties.
      Specified by:
      prepareViewForElement in interface IElementPropertiesBean<FcSaveToWebDavProps,WorkflowNode>
      Parameters:
      params - The current element to be edited and its properties. You may store a reference to these, modify them, and return them when IElementPropertiesBean.retrieveCurrentProperties(Object) is called.
      Throws:
      Exception - When the initialization failed. If an exception is thrown, the user is shown an error indicating that the properties cannot be edited.