Search in sources :

Example 1 with ListMyDashboardsPage

use of org.devgateway.ocds.forms.wicket.page.list.ListMyDashboardsPage in project ocvn by devgateway.

the class BasePage method newMyDashboardsMenu.

protected NavbarButton<ListMyDashboardsPage> newMyDashboardsMenu() {
    // home
    NavbarButton<ListMyDashboardsPage> menu = new NavbarButton<>(ListMyDashboardsPage.class, this.getPageParameters(), new ResourceModel("mydashboards"));
    menu.setIconType(GlyphIconType.filter);
    MetaDataRoleAuthorizationStrategy.authorize(menu, Component.RENDER, SecurityConstants.Roles.ROLE_PROCURING_ENTITY);
    return menu;
}
Also used : ListMyDashboardsPage(org.devgateway.ocds.forms.wicket.page.list.ListMyDashboardsPage) NavbarButton(de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarButton) ResourceModel(org.apache.wicket.model.ResourceModel) StringResourceModel(org.apache.wicket.model.StringResourceModel)

Example 2 with ListMyDashboardsPage

use of org.devgateway.ocds.forms.wicket.page.list.ListMyDashboardsPage in project oc-explorer by devgateway.

the class BasePage method newMyDashboardsMenu.

protected NavbarButton<ListMyDashboardsPage> newMyDashboardsMenu() {
    // home
    NavbarButton<ListMyDashboardsPage> menu = new NavbarButton<>(ListMyDashboardsPage.class, this.getPageParameters(), new ResourceModel("mydashboards"));
    menu.setIconType(GlyphIconType.filter);
    MetaDataRoleAuthorizationStrategy.authorize(menu, Component.RENDER, SecurityConstants.Roles.ROLE_PROCURING_ENTITY);
    return menu;
}
Also used : ListMyDashboardsPage(org.devgateway.ocds.forms.wicket.page.list.ListMyDashboardsPage) NavbarButton(de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarButton) ResourceModel(org.apache.wicket.model.ResourceModel) StringResourceModel(org.apache.wicket.model.StringResourceModel)

Aggregations

NavbarButton (de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarButton)2 ResourceModel (org.apache.wicket.model.ResourceModel)2 StringResourceModel (org.apache.wicket.model.StringResourceModel)2 ListMyDashboardsPage (org.devgateway.ocds.forms.wicket.page.list.ListMyDashboardsPage)2