Example usage for org.apache.wicket.authroles.authentication AbstractAuthenticatedWebSession get

List of usage examples for org.apache.wicket.authroles.authentication AbstractAuthenticatedWebSession get

Introduction

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

Prototype

public static AbstractAuthenticatedWebSession get() 

Source Link

Usage

From source file:org.apache.openmeetings.web.app.WebSession.java

License:Apache License

public static WebSession get() {
    return (WebSession) AbstractAuthenticatedWebSession.get();
}

From source file:org.devgateway.eudevfin.ui.common.pages.LoginPage.java

License:Open Source License

public LoginPage(final PageParameters parameters) {
    LoginForm loginForm = new LoginForm("loginform");
    loginForm.setVisible(!AbstractAuthenticatedWebSession.get().isSignedIn());
    add(loginForm);//from   w ww . j  a va  2s . c  o m
}

From source file:org.devgateway.toolkit.forms.wicket.page.user.LoginPage.java

License:Open Source License

/**
 * @param parameters/*from   ww w.  j  a v a 2 s  . com*/
 *            The page parameters.
 */
public LoginPage(final PageParameters parameters) {
    super(parameters);

    // redirect to homepage if user reaches the /login page while
    // authenticated
    if (AbstractAuthenticatedWebSession.get().isSignedIn()) {
        setResponsePage(Homepage.class);
    }

    LoginForm loginForm = new LoginForm("loginform");
    add(loginForm);
}