Interface ConfigurableFlowControllerPersistDelegate
-
- All Superinterfaces:
ConfigurableFlowControllerDelegate
- All Known Implementing Classes:
DefaultConfigurableFlowControllerPersistDelegate
public interface ConfigurableFlowControllerPersistDelegate extends ConfigurableFlowControllerDelegate
Provides methods for performing persistence and notifying operations on ConfigurableFlowController. Implementation of this interface allows persisting/revoking properties and manages success/failure notifications.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanpersistProperties(AbstractActionType actionType)Persists properties of the actionjava.lang.ObjectpersistWidgetProperty(java.lang.String property)Persist property from values of the controllervoidrevertProperties(CancelType cancel)Removes properties which where saved during the operations on the Configurable FlowvoidshowFailureNotification(ObjectSavingException failureException)Shows object creation failure notificationvoidshowFailureNotification(java.lang.Throwable failureException)Shows object creation failure notificationvoidshowSuccessNotification(java.lang.Object persistedObject)Shows objects creation success notification-
Methods inherited from interface com.hybris.cockpitng.widgets.configurableflow.delegate.ConfigurableFlowControllerDelegate
setController
-
-
-
-
Method Detail
-
persistProperties
boolean persistProperties(AbstractActionType actionType)
Persists properties of the action- Parameters:
actionType- action type- Returns:
- true if operation succeeded, otherwise false
-
revertProperties
void revertProperties(CancelType cancel)
Removes properties which where saved during the operations on the Configurable Flow- Parameters:
cancel- cancel type
-
persistWidgetProperty
java.lang.Object persistWidgetProperty(java.lang.String property) throws ObjectSavingExceptionPersist property from values of the controller- Parameters:
property- property to save- Returns:
- saved object
- Throws:
ObjectSavingException- when saving fails
-
showSuccessNotification
void showSuccessNotification(java.lang.Object persistedObject)
Shows objects creation success notification- Parameters:
persistedObject- object which was persisted
-
showFailureNotification
void showFailureNotification(ObjectSavingException failureException)
Shows object creation failure notification- Parameters:
failureException- object saving exception
-
showFailureNotification
void showFailureNotification(java.lang.Throwable failureException)
Shows object creation failure notification- Parameters:
failureException- throwable
-
-