Class ProfileSettingController

java.lang.Object
org.zkoss.zk.ui.event.GenericEventListener
org.zkoss.zk.ui.util.GenericComposer<T>
org.zkoss.zk.ui.util.GenericAutowireComposer<T>
org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
com.hybris.cockpitng.util.ViewAnnotationAwareComposer
com.hybris.cockpitng.util.DefaultWidgetController
com.hybris.backoffice.widgets.userprofile.profilesetting.ProfileSettingController
All Implemented Interfaces:
MDDetailLogic, com.hybris.cockpitng.core.WidgetController, com.hybris.cockpitng.dnd.WidgetDragAndDropAware, com.hybris.cockpitng.engine.WidgetInstanceManagerAware, Serializable, org.zkoss.zk.ui.event.EventListener, org.zkoss.zk.ui.event.SerializableEventListener, org.zkoss.zk.ui.util.ComponentActivationListener, org.zkoss.zk.ui.util.ComponentCloneListener, org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>, org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>

public class ProfileSettingController extends com.hybris.cockpitng.util.DefaultWidgetController implements MDDetailLogic
See Also:
  • Field Details

    • SOCKET_OUTPUT_SHOW_CROPPER

      protected static final String SOCKET_OUTPUT_SHOW_CROPPER
      See Also:
    • SOCKET_OUTPUT_AVATAR_CHANGED

      protected static final String SOCKET_OUTPUT_AVATAR_CHANGED
      See Also:
    • SOCKET_INPUT_CROP_FINISHED

      protected static final String SOCKET_INPUT_CROP_FINISHED
      See Also:
    • USER_PROFILE_AVATAR_PREFIX

      protected static final String USER_PROFILE_AVATAR_PREFIX
      See Also:
    • NOTIFICATION_AREA

      protected static final String NOTIFICATION_AREA
      See Also:
    • NOTIFICATION_TYPE_USER_PROFILE_CHANGED

      protected static final String NOTIFICATION_TYPE_USER_PROFILE_CHANGED
      See Also:
    • avatarImage

      protected org.zkoss.zul.Image avatarImage
    • uploadBtn

      protected org.zkoss.zul.Button uploadBtn
    • userNameLabel

      protected org.zkoss.zul.Label userNameLabel
  • Constructor Details

    • ProfileSettingController

      public ProfileSettingController()
  • Method Details

    • initialize

      public void initialize(org.zkoss.zk.ui.Component comp)
      Overrides:
      initialize in class com.hybris.cockpitng.util.DefaultWidgetController
    • onFileUpload

      protected void onFileUpload(org.zkoss.zk.ui.event.Event event)
    • fileCropped

      public void fileCropped(org.zkoss.util.media.Media media)
    • save

      public boolean save()
      Description copied from interface: MDDetailLogic
      Perform save operation
      Specified by:
      save in interface MDDetailLogic
      Returns:
      true if save success, false if save failure
    • getSettingItem

      public SettingItem getSettingItem()
      Description copied from interface: MDDetailLogic
      Returns the setting item data of this detail view
      Specified by:
      getSettingItem in interface MDDetailLogic
      Returns:
      a SettingItem data of detail view
    • reset

      public void reset()
      Description copied from interface: MDDetailLogic
      Resets the detail view to the initial state
      Specified by:
      reset in interface MDDetailLogic
    • isDataChanged

      public boolean isDataChanged()
      Description copied from interface: MDDetailLogic
      Check if data changed in detail view
      Specified by:
      isDataChanged in interface MDDetailLogic
      Returns:
      true if data changed or false if not
    • needRefreshUI

      public boolean needRefreshUI()
      Description copied from interface: MDDetailLogic
      Check if need to refresh UI after save
      Specified by:
      needRefreshUI in interface MDDetailLogic
      Returns:
      true if need to refresh UI after save or false if not
    • setUserProfileSettingService

      public void setUserProfileSettingService(MasterDetailService userProfileSettingService)
    • getUserProfileSettingService

      protected MasterDetailService getUserProfileSettingService()
    • getUserService

      protected UserService getUserService()
    • setUserService

      public void setUserService(UserService userService)
    • getModelService

      public ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)
    • getNotificationService

      public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()
    • setNotificationService

      public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
    • getBackofficeMediaUtil

      public MediaUtil getBackofficeMediaUtil()
    • setBackofficeMediaUtil

      public void setBackofficeMediaUtil(MediaUtil backofficeMediaUtil)