Class MediaContentUpdateHandler

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler

    public class MediaContentUpdateHandler
    extends java.lang.Object
    implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)  
      MediaService getMediaService()  
      protected MediaModel getMediaToUpdate​(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,​java.lang.String> params)  
      ModelService getModelService()  
      com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()  
      com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade()  
      protected void notifyAboutSuccess​(MediaModel model)  
      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)  
      protected void rollback​(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,​java.lang.String> params, MediaModel mediaToUpdate)  
      protected void save​(MediaModel mediaToUpdate, com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult mediaContent)  
      void setMediaService​(MediaService mediaService)  
      protected void setMediaToUpdate​(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,​java.lang.String> params, MediaModel mediaModel)  
      void setModelService​(ModelService modelService)  
      void setNotificationService​(com.hybris.cockpitng.util.notifications.NotificationService notificationService)  
      void setObjectFacade​(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)  
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MEDIA_CONTENT_PROPERTY

        public static final java.lang.String MEDIA_CONTENT_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • MediaContentUpdateHandler

        public MediaContentUpdateHandler()
    • 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:
        perform in interface com.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)
      • 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)
      • setModelService

        public void setModelService​(ModelService modelService)