Class PasswordSettingController
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.passwordsetting.PasswordSettingController
- 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 PasswordSettingController
extends com.hybris.cockpitng.util.DefaultWidgetController
implements MDDetailLogic
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
_separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScopeFields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChangePasswordRendererUtilprotected org.zkoss.zul.Textboxprotected ModelServiceprotected com.hybris.cockpitng.util.notifications.NotificationServiceprotected org.zkoss.zul.Textboxprotected org.zkoss.zul.TextboxReturns the setting item data of this detail viewprotected MasterDetailServiceprotected UserServicevoidinitialize(org.zkoss.zk.ui.Component comp) protected booleanbooleanCheck if data changed in detail viewbooleanCheck if need to refresh UI after savevoidpreInitialize(org.zkoss.zk.ui.Component comp) voidreset()Resets the detail view to the initial statebooleansave()Perform save operationvoidsetChangePasswordRendererUtil(ChangePasswordRendererUtil changePasswordRendererUtil) voidsetConfInput(org.zkoss.zul.Textbox confInput) voidsetModelService(ModelService modelService) voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) voidsetOldInput(org.zkoss.zul.Textbox oldInput) voidsetPwdInput(org.zkoss.zul.Textbox pwdInput) voidsetUserProfileSettingService(MasterDetailService userProfileSettingService) voidsetUserService(UserService userService) Methods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitleMethods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListenersMethods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivateMethods inherited from class org.zkoss.zk.ui.util.GenericComposer
doCatch, doFinallyMethods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
-
Field Details
-
ENABLE_CHANGE_PASSWORD_PROPERTY
- See Also:
-
ENABLE_CHANGE_PASSWORD_SETTING
- See Also:
-
CHANGEPASSWORD_OLD_PWD_LABEL
- See Also:
-
CHANGEPASSWORD_NEW_PWD_LABEL
- See Also:
-
CHANGEPASSWORD_CONFIRM_PWD_LABEL
- See Also:
-
-
Constructor Details
-
PasswordSettingController
public PasswordSettingController()
-
-
Method Details
-
preInitialize
public void preInitialize(org.zkoss.zk.ui.Component comp) - Overrides:
preInitializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
isChangePasswordEnabled
protected boolean isChangePasswordEnabled() -
isDataChanged
public boolean isDataChanged()Description copied from interface:MDDetailLogicCheck if data changed in detail view- Specified by:
isDataChangedin interfaceMDDetailLogic- Returns:
- true if data changed or false if not
-
needRefreshUI
public boolean needRefreshUI()Description copied from interface:MDDetailLogicCheck if need to refresh UI after save- Specified by:
needRefreshUIin interfaceMDDetailLogic- Returns:
- true if need to refresh UI after save or false if not
-
save
public boolean save()Description copied from interface:MDDetailLogicPerform save operation- Specified by:
savein interfaceMDDetailLogic- Returns:
- true if save success, false if save failure
-
reset
public void reset()Description copied from interface:MDDetailLogicResets the detail view to the initial state- Specified by:
resetin interfaceMDDetailLogic
-
getSettingItem
Description copied from interface:MDDetailLogicReturns the setting item data of this detail view- Specified by:
getSettingItemin interfaceMDDetailLogic- Returns:
- a SettingItem data of detail view
-
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) -
getNotificationService
protected com.hybris.cockpitng.util.notifications.NotificationService getNotificationService() -
setChangePasswordRendererUtil
-
getChangePasswordRendererUtil
-
setUserService
-
getUserService
-
setModelService
-
getModelService
-
setUserProfileSettingService
-
getUserProfileSettingService
-
setOldInput
public void setOldInput(org.zkoss.zul.Textbox oldInput) -
getOldInput
protected org.zkoss.zul.Textbox getOldInput() -
setPwdInput
public void setPwdInput(org.zkoss.zul.Textbox pwdInput) -
getPwdInput
protected org.zkoss.zul.Textbox getPwdInput() -
setConfInput
public void setConfInput(org.zkoss.zul.Textbox confInput) -
getConfInput
protected org.zkoss.zul.Textbox getConfInput()
-