Package com.saperion.ngc.dialogs
Class UserProfileDialog
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
com.saperion.ngc.dialogs.UserProfileDialog
- All Implemented Interfaces:
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.util.ComposerExt
public class UserProfileDialog
extends org.zkoss.zk.ui.util.GenericForwardComposer
User-profile dialog.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
TheEventChildHandler
used to process events.static final String
Listener called when user clicked OK.static final String
Force the user to change password, disables other settings.Fields 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, spaceScope
Fields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doAfterCompose
(org.zkoss.zk.ui.Component comp) Gets the presence-property.boolean
Checks if changing the password is disabled.Gets the password constraint.boolean
boolean
boolean
boolean
Returns a boolean value that tells you whether the the workflow feature is enabled or not.boolean
boolean
void
void
void
onChanging$upd_repeatNewPassword
(org.zkoss.zk.ui.event.InputEvent event) OnChanging handler for repeat-new-password box.void
onCheck$upd_presenceCheckbox
(org.zkoss.zk.ui.event.CheckEvent event) OnCheck handler for presence checkbox.void
onCheck$upd_substituteAccessCheckbox
(org.zkoss.zk.ui.event.CheckEvent event) void
OnClick handler for cancel-button.void
A click on the okay button starts validating all input fields If an error occurs during field validation the window stays open and shows the error messages next to the erroneous input fields.void
onClick$upd_selectSubstituteButton
(org.zkoss.zk.ui.event.Event event) Display the User Selection dialogue.void
setIsPresent
(boolean isPresent) Sets the presence-property.void
setPasswordChanged
(boolean passwordChanged) void
setPasswordChangeDisabled
(boolean disabled) Sets if changing the password is disabled.void
setPasswordConstraint
(String constraint) Sets the password constraint.void
setPresenceChanged
(boolean presenceChanged) void
setSubstituteAccessChanged
(boolean substituteAccessChanged) void
setSubstituteAccessEnabled
(boolean substituteAccessEnabled) void
setSubstituteChanged
(boolean substituteChanged) static void
Shows the dialog.Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivate
Methods inherited from class org.zkoss.zk.ui.util.GenericComposer
doBeforeCompose, doBeforeComposeChildren, doCatch, doFinally
Methods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
-
Field Details
-
ARG_EVENT_CHILD_HANDLER
TheEventChildHandler
used to process events.- See Also:
-
ARG_PASSWORD_EXPIRED_MODE
Force the user to change password, disables other settings.- See Also:
-
ARG_OK_EVENT_LISTENER
Listener called when user clicked OK.- See Also:
-
-
Constructor Details
-
UserProfileDialog
public UserProfileDialog()
-
-
Method Details
-
show
Shows the dialog. Possible keys for the args map are:- Parameters:
parent
- parent component for the dialog (usually the root component)args
- arguments
-
doAfterCompose
- Specified by:
doAfterCompose
in interfaceorg.zkoss.zk.ui.util.Composer
- Overrides:
doAfterCompose
in classorg.zkoss.zk.ui.util.GenericForwardComposer
- Throws:
Exception
- See Also:
-
GenericForwardComposer.doAfterCompose(org.zkoss.zk.ui.Component)
-
onClick$upd_okButton
public void onClick$upd_okButton()A click on the okay button starts validating all input fields If an error occurs during field validation the window stays open and shows the error messages next to the erroneous input fields. Only if all steps of validation were successful the password will be changed and the dialog closes. -
onClick$upd_cancelButton
public void onClick$upd_cancelButton()OnClick handler for cancel-button. -
onChanging$upd_repeatNewPassword
public void onChanging$upd_repeatNewPassword(org.zkoss.zk.ui.event.InputEvent event) OnChanging handler for repeat-new-password box.- Parameters:
event
- the event
-
onChanging$upd_newPassword
public void onChanging$upd_newPassword() -
onChanging$upd_currentPassword
public void onChanging$upd_currentPassword() -
onCheck$upd_substituteAccessCheckbox
public void onCheck$upd_substituteAccessCheckbox(org.zkoss.zk.ui.event.CheckEvent event) -
onClick$upd_selectSubstituteButton
public void onClick$upd_selectSubstituteButton(org.zkoss.zk.ui.event.Event event) Display the User Selection dialogue.- Parameters:
event
- Event that is thrown onClick to the select substitute button.
-
onCheck$upd_presenceCheckbox
public void onCheck$upd_presenceCheckbox(org.zkoss.zk.ui.event.CheckEvent event) OnCheck handler for presence checkbox.- Parameters:
event
- the event
-
getIsPresent
Gets the presence-property.- Returns:
- if user is present
-
setIsPresent
public void setIsPresent(boolean isPresent) Sets the presence-property.- Parameters:
isPresent
- if user is present or not
-
getPasswordConstraint
Gets the password constraint.- Returns:
- the password constraint
-
setPasswordConstraint
Sets the password constraint.- Parameters:
constraint
- the new password constraint
-
setPasswordChangeDisabled
public void setPasswordChangeDisabled(boolean disabled) Sets if changing the password is disabled.- Parameters:
disabled
- if changing the password is disabled or not
-
getPasswordChangeDisabled
public boolean getPasswordChangeDisabled()Checks if changing the password is disabled.- Returns:
- if changing the password is disabled or not
-
isPresenceDisabled
public boolean isPresenceDisabled()Returns a boolean value that tells you whether the the workflow feature is enabled or not. It is used to disable checkbox to set the current presence state.- Returns:
- true if the workflow feature is disabled, false else.
-
setSubstituteAccessEnabled
public void setSubstituteAccessEnabled(boolean substituteAccessEnabled) -
getSubstituteAccessEnabled
public boolean getSubstituteAccessEnabled() -
isSubstituteAccessChanged
public boolean isSubstituteAccessChanged() -
setSubstituteAccessChanged
public void setSubstituteAccessChanged(boolean substituteAccessChanged) -
isSubstituteChanged
public boolean isSubstituteChanged() -
setSubstituteChanged
public void setSubstituteChanged(boolean substituteChanged) -
isPresenceChanged
public boolean isPresenceChanged() -
setPresenceChanged
public void setPresenceChanged(boolean presenceChanged) -
isPasswordChanged
public boolean isPasswordChanged() -
setPasswordChanged
public void setPasswordChanged(boolean passwordChanged)
-