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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FcSaveToWebDavBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.primefaces.model.TreeNode<WebDAVTreeNodeData>
getRoot()
WebDavAccess
getWebDav()
String
getWebDavUrl()
void
onClickShowFolders()
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
onWebDavConnectionChange()
Callback when the user selects a different WebDAV connection.void
prepareViewForElement(IElementPropInitParams<FcSaveToWebDavProps> params)
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
-
-
-
-
Method Detail
-
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, ornull
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 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.
-
-