public abstract class AuthenticatedWebApplication extends WebApplication implements IRoleCheckingStrategy, IUnauthorizedComponentInstantiationListener
META_INF_RESOURCESCONFIGURATION| Constructor and Description |
|---|
AuthenticatedWebApplication()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<? extends WebPage> |
getSignInPageClass() |
protected abstract Class<? extends AbstractAuthenticatedWebSession> |
getWebSessionClass() |
boolean |
hasAnyRole(Roles roles)
Whether any of the given roles matches.
|
protected void |
init() |
Session |
newSession(org.apache.wicket.request.Request request,
org.apache.wicket.request.Response response) |
void |
onUnauthorizedInstantiation(Component component) |
protected void |
onUnauthorizedPage(Page page)
Called when an AUTHENTICATED user tries to navigate to a page that they are not authorized to
access.
|
void |
restartResponseAtSignInPage()
Restarts response at sign in page.
|
addResourceReplacement, addResourceReplacement, get, getAjaxRequestTargetListeners, getAjaxRequestTargetProvider, getAndRemoveBufferedResponse, getApplicationKey, getConfigurationType, getFilterFactoryManager, getInitParameter, getMimeType, getServletContext, getSessionAttributePrefix, getWicketFilter, hasBufferedResponse, hasFilterFactoryManager, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mountPackage, mountPage, mountResource, newAjaxRequestTarget, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setConfigurationType, setServletContext, setWicketFilter, storeBufferedResponse, unmountconfigure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListenerCollection, getHomePage, getInitializers, getJavaScriptLibrarySettings, getMapperContext, getMarkupSettings, getMetaData, getName, getPageFactory, getPageManagerContext, getPageManagerProvider, getPageRendererProvider, getPageSettings, getRequestCycleListeners, getRequestCycleProvider, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceBundles, getResourceReferenceRegistry, getResourceSettings, getRootRequestMapper, getRootRequestMapperAsCompound, getSecuritySettings, getSessionListeners, getSessionStore, getSessionStoreProvider, getSharedResources, getStoreSettings, initApplication, initializeComponents, newConverterLocator, newMapperContext, newPageFactory, newRequestLogger, newResourceBundles, newResourceReferenceRegistry, newSharedResources, onDestroy, onEvent, setApplicationSettings, setDebugSettings, setExceptionSettings, setFrameworkSettings, setHeaderResponseDecorator, setJavaScriptLibrarySettings, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig, validateInitprotected void init()
init in class WebApplicationWebApplication.init()public final boolean hasAnyRole(Roles roles)
IRoleCheckingStrategyhasAnyRole in interface IRoleCheckingStrategyroles - the rolesIRoleCheckingStrategy.hasAnyRole(Roles)public final void onUnauthorizedInstantiation(Component component)
onUnauthorizedInstantiation in interface IUnauthorizedComponentInstantiationListenerIUnauthorizedComponentInstantiationListener.onUnauthorizedInstantiation(Component)public void restartResponseAtSignInPage()
public Session newSession(org.apache.wicket.request.Request request, org.apache.wicket.request.Response response)
newSession in class WebApplicationprotected abstract Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass()
protected abstract Class<? extends WebPage> getSignInPageClass()
protected void onUnauthorizedPage(Page page)
page - The pageCopyright © 2006-2012 Apache Software Foundation. All Rights Reserved.