Example usage for org.apache.wicket.authroles.authentication AuthenticatedWebApplication restartResponseAtSignInPage

List of usage examples for org.apache.wicket.authroles.authentication AuthenticatedWebApplication restartResponseAtSignInPage

Introduction

In this page you can find the example usage for org.apache.wicket.authroles.authentication AuthenticatedWebApplication restartResponseAtSignInPage.

Prototype

public void restartResponseAtSignInPage() 

Source Link

Document

Restarts response at sign in page.

Usage

From source file:com.romeikat.datamessie.core.base.ui.page.AbstractAuthenticatedPage.java

License:Open Source License

private boolean redirectToSignInPageIfNecessary() {
    if (!AuthenticatedWebSession.get().isSignedIn()) {
        final AuthenticatedWebApplication app = (AuthenticatedWebApplication) Application.get();
        app.restartResponseAtSignInPage();
        return true;
    }/* ww w . j  av a 2 s . c om*/
    return false;
}

From source file:de.smf.timetracker.model.HomePageModel.java

License:Apache License

@Override
protected void onConfigure() {
    AuthenticatedWebApplication app = (AuthenticatedWebApplication) AuthenticatedWebApplication.get();

    if (!AuthenticatedWebSession.get().isSignedIn()) {
        app.restartResponseAtSignInPage();
    }/*w  w w  .  j a va2s  .c o  m*/

}

From source file:org.wicketTutorial.AuthenticatedPage.java

License:Apache License

@Override
protected void onConfigure() {
    AuthenticatedWebApplication app = (AuthenticatedWebApplication) AuthenticatedWebApplication.get();

    if (!AuthenticatedWebSession.get().isSignedIn())
        app.restartResponseAtSignInPage();
}