Class FcRedirectBean
- java.lang.Object
-
- de.xima.fc.workflow.designer.bean.nodes.FcRedirectBean
-
- All Implemented Interfaces:
IElementPropertiesBean<FcRedirectProps,WorkflowNode>,INodePropertiesBean<FcRedirectProps>,Serializable
@ViewScoped @Named public class FcRedirectBean extends Object implements INodePropertiesBean<FcRedirectProps>, Serializable
Bean with additional logic for controlling theEWorkflowNodeType.FC_REDIRECTaction.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FcRedirectBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetRedirectPreviewUrl()voidprepareViewForElement(IElementPropInitParams<FcRedirectProps> params)Called each time when the properties panel for a certain workflow element is loaded.voidsetCurrentViewBean(CurrentViewBean currentViewBean)Deprecated.voidupdateCurrentProperties(IElementUpdateCurrentPropsParams<FcRedirectProps> params)Called each time when the data of the selected node was edited externally.-
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
updateCurrentTask
-
Methods inherited from interface de.xima.fc.interfaces.workflow.nodes.INodePropertiesBean
retrieveCurrentProperties
-
-
-
-
Method Detail
-
getRedirectPreviewUrl
public String getRedirectPreviewUrl()
- Returns:
- A preview of the URL contained in the template, with the query parameters added to it.
-
prepareViewForElement
public void prepareViewForElement(IElementPropInitParams<FcRedirectProps> params) throws Exception
Description copied from interface:IElementPropertiesBeanCalled 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:
prepareViewForElementin interfaceIElementPropertiesBean<FcRedirectProps,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.
-
updateCurrentProperties
public void updateCurrentProperties(IElementUpdateCurrentPropsParams<FcRedirectProps> params) throws Exception
Description copied from interface:IElementPropertiesBeanCalled each time when the data of the selected node was edited externally. Normally this does not happen. This only happens when the element handler returned a custom client handler (seeIElementHandler.getJavaScript(boolean)) that invoked an external custom params update from the flowchart. If this bean stored the data in a field duringIElementPropertiesBean.prepareViewForElement(IElementPropInitParams), it should update that field.- Specified by:
updateCurrentPropertiesin interfaceIElementPropertiesBean<FcRedirectProps,WorkflowNode>- Parameters:
params- Params with the old and new data.- Throws:
Exception- When the data could not be updated. This exception is caught and an error message is shown to the user.
-
setCurrentViewBean
@Deprecated public void setCurrentViewBean(CurrentViewBean currentViewBean)
Deprecated.
-
-