Search in sources :

Example 1 with LogoutPage

use of org.devgateway.toolkit.forms.wicket.page.user.LogoutPage in project ocvn by devgateway.

the class BasePage method newLogoutMenu.

protected NavbarButton<LogoutPage> newLogoutMenu() {
    // logout menu
    NavbarButton<LogoutPage> logoutMenu = new NavbarButton<LogoutPage>(LogoutPage.class, new StringResourceModel("navbar.logout", this, null));
    logoutMenu.setIconType(GlyphIconType.logout);
    MetaDataRoleAuthorizationStrategy.authorize(logoutMenu, Component.RENDER, SecurityConstants.Roles.ROLE_USER);
    return logoutMenu;
}
Also used : NavbarButton(de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarButton) LogoutPage(org.devgateway.toolkit.forms.wicket.page.user.LogoutPage) StringResourceModel(org.apache.wicket.model.StringResourceModel)

Aggregations

NavbarButton (de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarButton)1 StringResourceModel (org.apache.wicket.model.StringResourceModel)1 LogoutPage (org.devgateway.toolkit.forms.wicket.page.user.LogoutPage)1