public abstract class UserEditForm extends ConfigPanel
Modifier and Type | Class and Description |
---|---|
static class |
UserEditForm.ExtendedPropertyListModel |
Modifier and Type | Field and Description |
---|---|
protected boolean |
addContactInfo |
boolean |
alterPassword |
protected IConfigPage |
configPage |
protected ConfigPanel |
destinationPanel |
protected org.apache.wicket.model.IModel<java.util.List<java.lang.String>> |
groupModel |
protected RecordEditMode |
mode |
protected java.lang.String |
originalUsername |
java.lang.String |
password |
protected org.apache.wicket.markup.html.form.PasswordTextField |
password1 |
protected org.apache.wicket.markup.html.form.PasswordTextField |
password2 |
protected org.apache.wicket.model.IModel<User> |
userModel |
feedback
Constructor and Description |
---|
UserEditForm(IConfigPage configPage,
ConfigPanel destinationPanel,
User user,
RecordEditMode mode,
org.apache.wicket.model.IModel<java.util.List<java.lang.String>> groupModel) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowAlterPassword()
Override this and return false to prevent the password editing UI to show
|
java.lang.String[] |
getMenuPath()
Returns the panel's menu path for config menu highlighting support
|
org.apache.wicket.model.IModel<java.lang.String> |
getTitleModel() |
protected User |
getUser() |
protected void |
initComponents() |
protected void |
onError()
Called when the wicket form calls onError().
|
protected void |
onSubmit() |
protected abstract void |
onUserEdited(User user)
Called when the user has been edited.
|
boolean |
saveContactInfoEnabled() |
getHelpResourceKey, getHelpTopicId, getTipLabelKey, getTipLabelModel, getTitleKey, initTitleArea, isEscapeHTMLInTipLabel, isFeedbackEnabled, isTitleVisible, log
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
protected IConfigPage configPage
protected ConfigPanel destinationPanel
protected RecordEditMode mode
protected java.lang.String originalUsername
protected org.apache.wicket.model.IModel<User> userModel
public boolean alterPassword
public java.lang.String password
protected org.apache.wicket.markup.html.form.PasswordTextField password1
protected org.apache.wicket.markup.html.form.PasswordTextField password2
protected org.apache.wicket.model.IModel<java.util.List<java.lang.String>> groupModel
protected boolean addContactInfo
public UserEditForm(IConfigPage configPage, ConfigPanel destinationPanel, User user, RecordEditMode mode, org.apache.wicket.model.IModel<java.util.List<java.lang.String>> groupModel)
protected User getUser()
public org.apache.wicket.model.IModel<java.lang.String> getTitleModel()
getTitleModel
in class ConfigPanel
public java.lang.String[] getMenuPath()
ConfigPanel
getMenuPath
in class ConfigPanel
public boolean allowAlterPassword()
protected void initComponents()
public boolean saveContactInfoEnabled()
protected void onSubmit()
protected abstract void onUserEdited(User user)
protected void onError()