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 java.lang.Object implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMEDIA_CONTENT_PROPERTYstatic java.lang.StringMEDIA_PROPERTY
-
Constructor Summary
Constructors Constructor Description MediaContentUpdateHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.hybris.cockpitng.editor.defaultfileupload.FileUploadResultgetMediaContent(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)MediaServicegetMediaService()protected MediaModelgetMediaToUpdate(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)ModelServicegetModelService()com.hybris.cockpitng.util.notifications.NotificationServicegetNotificationService()com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadegetObjectFacade()protected voidnotifyAboutSuccess(MediaModel model)voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> map)protected voidrollback(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.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, java.util.Map<java.lang.String,java.lang.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, java.util.Map<java.lang.String,java.lang.String> map, com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult mediaContent, MediaModel mediaToUpdate)
-
-
-
Field Detail
-
MEDIA_CONTENT_PROPERTY
public static final java.lang.String MEDIA_CONTENT_PROPERTY
- See Also:
- Constant Field Values
-
MEDIA_PROPERTY
public static final java.lang.String MEDIA_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> map)- Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
tryToSave
protected void tryToSave(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.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, java.util.Map<java.lang.String,java.lang.String> params, MediaModel mediaToUpdate)
-
notifyAboutSuccess
protected void notifyAboutSuccess(MediaModel model)
-
getMediaToUpdate
protected MediaModel getMediaToUpdate(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)
-
setMediaToUpdate
protected void setMediaToUpdate(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params, MediaModel mediaModel)
-
getMediaContent
protected com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult getMediaContent(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)
-
getMediaService
public MediaService getMediaService()
-
setMediaService
public void setMediaService(MediaService mediaService)
-
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
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-