Class DefaultConfigurableFlowControllerPersistDelegate
- java.lang.Object
-
- com.hybris.cockpitng.widgets.configurableflow.delegate.DefaultConfigurableFlowControllerPersistDelegate
-
- All Implemented Interfaces:
ConfigurableFlowControllerDelegate,ConfigurableFlowControllerPersistDelegate
public class DefaultConfigurableFlowControllerPersistDelegate extends java.lang.Object implements ConfigurableFlowControllerPersistDelegate
-
-
Constructor Summary
Constructors Constructor Description DefaultConfigurableFlowControllerPersistDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurableFlowControllergetController()protected NotificationServicegetNotificationService()protected ObjectFacadegetObjectFacade()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 FlowvoidsetController(ConfigurableFlowController controller)Sets Configurable Flow controllervoidsetNotificationService(NotificationService notificationService)voidsetObjectFacade(ObjectFacade objectFacade)voidshowFailureNotification(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
-
-
-
Method Detail
-
persistProperties
public boolean persistProperties(AbstractActionType actionType)
Description copied from interface:ConfigurableFlowControllerPersistDelegatePersists properties of the action- Specified by:
persistPropertiesin interfaceConfigurableFlowControllerPersistDelegate- Parameters:
actionType- action type- Returns:
- true if operation succeeded, otherwise false
-
revertProperties
public void revertProperties(CancelType cancel)
Description copied from interface:ConfigurableFlowControllerPersistDelegateRemoves properties which where saved during the operations on the Configurable Flow- Specified by:
revertPropertiesin interfaceConfigurableFlowControllerPersistDelegate- Parameters:
cancel- cancel type
-
persistWidgetProperty
public java.lang.Object persistWidgetProperty(java.lang.String property) throws ObjectSavingExceptionDescription copied from interface:ConfigurableFlowControllerPersistDelegatePersist property from values of the controller- Specified by:
persistWidgetPropertyin interfaceConfigurableFlowControllerPersistDelegate- Parameters:
property- property to save- Returns:
- saved object
- Throws:
ObjectSavingException- when saving fails
-
showSuccessNotification
public void showSuccessNotification(java.lang.Object persistedObject)
Description copied from interface:ConfigurableFlowControllerPersistDelegateShows objects creation success notification- Specified by:
showSuccessNotificationin interfaceConfigurableFlowControllerPersistDelegate- Parameters:
persistedObject- object which was persisted
-
showFailureNotification
public void showFailureNotification(ObjectSavingException failureException)
Description copied from interface:ConfigurableFlowControllerPersistDelegateShows object creation failure notification- Specified by:
showFailureNotificationin interfaceConfigurableFlowControllerPersistDelegate- Parameters:
failureException- object saving exception
-
showFailureNotification
public void showFailureNotification(java.lang.Throwable failureException)
Description copied from interface:ConfigurableFlowControllerPersistDelegateShows object creation failure notification- Specified by:
showFailureNotificationin interfaceConfigurableFlowControllerPersistDelegate- Parameters:
failureException- throwable
-
getController
protected ConfigurableFlowController getController()
-
setController
public void setController(ConfigurableFlowController controller)
Description copied from interface:ConfigurableFlowControllerDelegateSets Configurable Flow controller- Specified by:
setControllerin interfaceConfigurableFlowControllerDelegate- Parameters:
controller- Configurable Flow controller used in delegate
-
getNotificationService
protected NotificationService getNotificationService()
-
setNotificationService
public void setNotificationService(NotificationService notificationService)
-
getObjectFacade
protected ObjectFacade getObjectFacade()
-
setObjectFacade
public void setObjectFacade(ObjectFacade objectFacade)
-
-