|
||||||||||
| 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 WebPage> |
getSignInPageClass()
|
protected abstract java.lang.Class<? extends AuthenticatedWebSession> |
getWebSessionClass()
|
boolean |
hasAnyRole(Roles roles)
Whether any of the given roles matches. |
protected void |
init()
|
Session |
newSession(Request 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. |
| 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 WebApplicationWebApplication.init()public final boolean hasAnyRole(Roles roles)
IRoleCheckingStrategy
hasAnyRole in interface IRoleCheckingStrategyroles - the roles
IRoleCheckingStrategy.hasAnyRole(Roles)public final void onUnauthorizedInstantiation(Component component)
onUnauthorizedInstantiation in interface IUnauthorizedComponentInstantiationListenerIUnauthorizedComponentInstantiationListener.onUnauthorizedInstantiation(Component)
public Session newSession(Request request,
Response response)
newSession in class WebApplicationWebApplication.newSession(org.apache.wicket.request.Request,
org.apache.wicket.request.Response)protected abstract java.lang.Class<? extends AuthenticatedWebSession> getWebSessionClass()
protected abstract java.lang.Class<? extends WebPage> getSignInPageClass()
protected void onUnauthorizedPage(Page page)
page - The page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||