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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.primefaces.model.TreeNode<WebDAVTreeNodeData>
getRoot()
void
Callback when the user clicks on the button to show the folders available on the WebDAV server.void
onNodeSelect
(org.primefaces.event.NodeSelectEvent event) Callback when the user clicks on a node in the tree with the existing folders.void
Callback when the user selects a different WebDAV connection.void
Called each time when the properties panel for a certain workflow element is loaded.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.xima.fc.interfaces.workflow.elements.IElementPropertiesBean
updateCurrentProperties, updateCurrentTask
Methods inherited from interface de.xima.fc.interfaces.workflow.nodes.INodePropertiesBean
retrieveCurrentProperties
-
Constructor Details
-
FcSaveToWebDavBean
public FcSaveToWebDavBean()
-
-
Method Details
-
getRoot
- Returns:
- The root node for the tree with the folders that are available on the WebDAV server.
-
getWebDav
- Returns:
- The currently selected
WebDavAccess
entity, ornull
if none is selected.
-
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 theWebDavAccess
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 theWebDavAccess
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 interfaceIElementPropertiesBean<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 whenIElementPropertiesBean.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.
-