Package com.hybris.backoffice.wizard
Class MediaContentUpdateHandler
java.lang.Object
com.hybris.backoffice.wizard.MediaContentUpdateHandler
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
public class MediaContentUpdateHandler
extends Object
implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.hybris.cockpitng.editor.defaultfileupload.FileUploadResultgetMediaContent(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> params) protected MediaModelgetMediaToUpdate(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> params) com.hybris.cockpitng.util.notifications.NotificationServicecom.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeprotected voidnotifyAboutSuccess(MediaModel model) voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> map) protected voidrollback(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> params, MediaModel mediaToUpdate) protected voidsave(MediaModel mediaToUpdate, com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult mediaContent) voidsetMediaService(MediaService mediaService) protected voidsetMediaToUpdate(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> params, MediaModel mediaModel) voidsetModelService(ModelService modelService) voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) voidsetObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade) protected voidtryToSave(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> map, com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult mediaContent, MediaModel mediaToUpdate)
-
Field Details
-
MEDIA_CONTENT_PROPERTY
- See Also:
-
MEDIA_PROPERTY
- See Also:
-
-
Constructor Details
-
MediaContentUpdateHandler
public MediaContentUpdateHandler()
-
-
Method Details
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> map) - Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
tryToSave
protected void tryToSave(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> map, com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult mediaContent, MediaModel mediaToUpdate) -
save
protected void save(MediaModel mediaToUpdate, com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult mediaContent) throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectSavingException - Throws:
com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectSavingException
-
rollback
protected void rollback(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> params, MediaModel mediaToUpdate) -
notifyAboutSuccess
-
getMediaToUpdate
protected MediaModel getMediaToUpdate(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> params) -
setMediaToUpdate
protected void setMediaToUpdate(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> params, MediaModel mediaModel) -
getMediaContent
-
getMediaService
-
setMediaService
-
getObjectFacade
public com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade() -
setObjectFacade
public void setObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade) -
getNotificationService
public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService() -
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) -
getModelService
-
setModelService
-