public class AdminLoginForm<T extends BasicSession> extends AbstractLoginForm<T,User>
for common Auth service methods between Form and Service layer
,
Serialized FormConstructor and Description |
---|
AdminLoginForm(String id) |
Modifier and Type | Method and Description |
---|---|
Class<? extends org.apache.wicket.markup.html.WebPage> |
getDefaultLandingPage(User user)
If no lading page specified on login, then goto Default.
|
protected CharSequence |
getPassword(String normalizedUserId)
Get password for user id
|
protected User |
getUserDetailsToLoadInSession(String normalizedUserId)
On successful login, load the User details into the Session
|
protected T |
processSessionOnLogin(T existingSession)
Opportunity to process, override session on login.
|
protected T |
setSessionFromUserDetails(User user,
AuthenticationToken authToken)
Chance to replace the Session Object itself
|
protected AdminUser |
signIn(Principal inputPrincipal)
Record last login time
|
addChangeListener, getAuthErrorMessage, getAuthFailMessage, getDefaultLandingPageParameters, getListeners, notifyAllListeners, onComponentTag, onSubmit, setListeners, userValidation
getStatelessHint, process
add, appendDefaultButtonField, beforeUpdateFormComponentModels, clearInput, delegateSubmit, encodeUrlInHiddenFields, error, findForm, findSubmittingButton, getDefaultButton, getFormValidators, getHiddenFieldId, getInputNamePrefix, getJavascriptId, getJsForInterfaceUrl, getMaxSize, getMethod, getModel, getModelObject, getRootForm, getRootFormRelativeId, getValidatorKeyPrefix, getValuePersister, handleMultiPart, hasError, internalOnModelChanged, isRootForm, isSubmitted, isVersioned, loadPersistentFormComponentValues, markFormComponentsInvalid, markFormComponentsValid, onBeforeRender, onComponentTagBody, onDetach, onError, onFileUploadException, onFormSubmitted, onValidate, process, registerJavascriptNamespaces, remove, removePersistentFormComponentValues, renderHead, renderPlaceholderTag, setDefaultButton, setMaxSize, setModel, setModelObject, setMultiPart, setVersioned, updateFormComponentModels, validate, validateComponents, validateFormValidator, validateFormValidators, visitFormComponents, visitFormComponentsPostOrder, writeParamsAsHiddenFields
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onConfigure, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
public AdminLoginForm(String id)
public Class<? extends org.apache.wicket.markup.html.WebPage> getDefaultLandingPage(User user)
AbstractLoginForm
BasicSession.getShell()
Shell.getEnvironment()
to derive final Page.getDefaultLandingPage
in class AbstractLoginForm<T extends BasicSession,User>
WebPage
protected final User getUserDetailsToLoadInSession(String normalizedUserId)
AbstractLoginForm
getUserDetailsToLoadInSession
in class AbstractLoginForm<T extends BasicSession,User>
protected final CharSequence getPassword(String normalizedUserId) throws Exception
getPassword
in class AbstractLoginForm<T extends BasicSession,User>
normalizedUserId
- - Case Insensitive (expected lowercase but not guaranteed). Search should be case insensitive for higher usability.Exception
protected T processSessionOnLogin(T existingSession)
processSessionOnLogin
in class AbstractLoginForm<T extends BasicSession,User>
existingSession
- as T BasicSession
protected AdminUser signIn(Principal inputPrincipal)
signIn
in class AbstractLoginForm<T extends BasicSession,User>
inputPrincipal
- protected T setSessionFromUserDetails(User user, AuthenticationToken authToken)
AbstractLoginForm
setSessionFromUserDetails
in class AbstractLoginForm<T extends BasicSession,User>
authToken
- as AuthenticationToken
, indicating there was successful Authentication with any Auth related details in it.Copyright © 2018. All rights reserved.