@MountPath(value="/register") public class DefaultRegistrationPage extends BasePage<OrienteerUser>
OrienteerUser as component modelBOOTSTRAP_CSS, BOOTSTRAP_DATE_PICKER_CSS, BOOTSTRAP_DATE_PICKER_JS, BOOTSTRAP_DATEPICKER_LOCALE, BOOTSTRAP_JS, COREUI_CSS, COREUI_JS, FONT_AWESOME_CSS, ORIENTEER_COREUI_CSS, PACE_JS, SIMPLE_LINE_ICONS_CSS, TETHER_JS| Constructor and Description |
|---|
DefaultRegistrationPage()
Constructor.
|
DefaultRegistrationPage(org.apache.wicket.request.mapper.parameter.PageParameters parameters)
Constructor
Retrieve parameter
RegistrationResource.PARAMETER_ID from parameters. |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.markup.html.panel.GenericPanel<OrienteerUser> |
createRegistrationPanel(String id)
Created default registration panel
Overrides
DefaultRegistrationPanel.onRegister(AjaxRequestTarget, IModel):
1. |
protected org.apache.wicket.markup.html.basic.Label |
createRegistrationSuccessLabel(String id)
Creates label which will be displayed when user successfully registered
If user document didn't saved in database, so component doesn't visible
|
protected String |
getBodyAppSubClasses() |
protected org.apache.wicket.model.IModel<String> |
getRegistrationTitleModel() |
org.apache.wicket.model.IModel<String> |
getTitleModel() |
protected void |
onInitialize()
Initialize component.
|
addUiPlugin, getDatabase, getPerspective, getSchema, getUiPluginsComponentsHolder, initialize, nextUiPluginComponentId, renderHead, resolveByPageParametersconfigureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl, reportMissingHead, setHeaderscomponentChanged, componentRendered, detachModels, dirty, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onConfigure, onDetach, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, toString, wasCreatedBookmarkable, wasRenderedadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, visitChildren, visitChildrenadd, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, 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, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObjectcanCallListenerAfterExpiry, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePathdequeue, getRegionMarkup, newDequeueContextforEach, spliteratorpublic DefaultRegistrationPage()
OrienteerUser as component modelpublic DefaultRegistrationPage(org.apache.wicket.request.mapper.parameter.PageParameters parameters)
RegistrationResource.PARAMETER_ID from parameters.
If user exists with given id and account status is OrienteerUser.STATUSES#SUSPENDED, so account status
set to OSecurityUser.STATUSES#ACTIVE.
If user exists, so user will be redirect to HomePage.
Otherwise will be created new OrienteerUser for register userparameters - PageParameters parameters which uses for activate accountprotected void onInitialize()
HomePageonInitialize in class BasePage<OrienteerUser>protected org.apache.wicket.markup.html.panel.GenericPanel<OrienteerUser> createRegistrationPanel(String id)
DefaultRegistrationPanel.onRegister(AjaxRequestTarget, IModel):
1. set user name equals user email
2. set account status OSecurityUser.STATUSES#SUSPENDED
3. save new user account
4. send mail to user with activation link
If user document was saved into database, so this panel doesn't visibleid - String component idDefaultRegistrationPanel default registration panelprotected org.apache.wicket.model.IModel<String> getRegistrationTitleModel()
protected org.apache.wicket.markup.html.basic.Label createRegistrationSuccessLabel(String id)
id - component idpublic org.apache.wicket.model.IModel<String> getTitleModel()
getTitleModel in class BasePage<OrienteerUser>protected String getBodyAppSubClasses()
getBodyAppSubClasses in class BasePage<OrienteerUser>Copyright © 2019. All rights reserved.