|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Application
org.apache.wicket.protocol.http.WebApplication
org.apache.wicket.authentication.AuthenticatedWebApplication
public abstract class AuthenticatedWebApplication
A web application subclass that does role-based authentication.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Application |
|---|
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT |
| Constructor Summary | |
|---|---|
AuthenticatedWebApplication()
Constructor |
|
| Method Summary | |
|---|---|
protected abstract java.lang.Class<? extends org.apache.wicket.markup.html.WebPage> |
getSignInPageClass()
|
protected abstract java.lang.Class<? extends AuthenticatedWebSession> |
getWebSessionClass()
|
boolean |
hasAnyRole(Roles roles)
Whether any of the given roles matches. |
protected void |
init()
|
org.apache.wicket.Session |
newSession(org.apache.wicket.Request request,
org.apache.wicket.Response response)
|
void |
onUnauthorizedInstantiation(org.apache.wicket.Component component)
|
protected void |
onUnauthorizedPage(org.apache.wicket.Page page)
Called when an AUTHENTICATED user tries to navigate to a page that they are not authorized to access. |
| Methods inherited from class org.apache.wicket.protocol.http.WebApplication |
|---|
get, getApplicationKey, getConfigurationType, getDefaultRequestCycleFactory, getInitParameter, getRequestCycleProcessor, getResourceFinder, getServletContext, getSessionAttributePrefix, getWicketFilter, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mount, mountBookmarkablePage, mountBookmarkablePage, mountSharedResource, newAjaxRequestTarget, newRequestCycle, newRequestCycleProcessor, newSession, newSession, newSessionStore, newWebRequest, newWebResponse, outputDevelopmentModeWarning, sessionDestroyed, setApplicationKey, setWicketFilter, unmount |
| Methods inherited from class org.apache.wicket.Application |
|---|
addComponentInstantiationListener, addComponentOnAfterRenderListener, addPostComponentOnBeforeRenderListener, addPreComponentOnBeforeRenderListener, addRenderHeadListener, configure, destroy, exists, get, getApplicationKeys, getApplicationSettings, getConverterLocator, getDebugSettings, getExceptionSettings, getFrameworkSettings, getHomePage, getMarkupCache, getMarkupSettings, getMetaData, getName, getPageSettings, getRequestCycleFactory, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceSettings, getSecuritySettings, getSessionFactory, getSessionSettings, getSessionStore, getSharedResources, initializeComponents, newConverterLocator, newRequestCycle, newRequestLogger, notifyRenderHeadListener, onDestroy, removeComponentInstantiationListener, removeComponentOnAfterRenderListener, removePostComponentOnBeforeRenderListener, removePreComponentOnBeforeRenderListener, removeRenderHeadListener, set, setMetaData, unset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticatedWebApplication()
| Method Detail |
|---|
protected void init()
init in class org.apache.wicket.protocol.http.WebApplicationpublic final boolean hasAnyRole(Roles roles)
IRoleCheckingStrategy
hasAnyRole in interface IRoleCheckingStrategyroles - the roles
IRoleCheckingStrategy.hasAnyRole(Roles)public final void onUnauthorizedInstantiation(org.apache.wicket.Component component)
onUnauthorizedInstantiation in interface org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListenerIUnauthorizedComponentInstantiationListener.onUnauthorizedInstantiation(Component)
public org.apache.wicket.Session newSession(org.apache.wicket.Request request,
org.apache.wicket.Response response)
newSession in class org.apache.wicket.protocol.http.WebApplicationWebApplication.newSession(org.apache.wicket.Request,
org.apache.wicket.Response)protected abstract java.lang.Class<? extends AuthenticatedWebSession> getWebSessionClass()
protected abstract java.lang.Class<? extends org.apache.wicket.markup.html.WebPage> getSignInPageClass()
protected void onUnauthorizedPage(org.apache.wicket.Page page)
page - The page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||