use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageReports method reportTypeFilterPerformed.
private void reportTypeFilterPerformed(AjaxRequestTarget target, String oid) {
PageParameters params = new PageParameters();
params.add(OnePageParameterEncoder.PARAMETER, oid);
navigateToNext(PageCreatedReports.class, params);
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageReports method configurePerformed.
private void configurePerformed(AjaxRequestTarget target, ReportType report) {
PageParameters params = new PageParameters();
params.add(OnePageParameterEncoder.PARAMETER, report.getOid());
navigateToNext(PageReport.class, params);
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageBase method createConfigurationItems.
private MainMenuItem createConfigurationItems() {
MainMenuItem item = new MainMenuItem("fa fa-cog", createStringResource("PageAdmin.menu.top.configuration"), null);
item.setInsertDefaultBackBreadcrumb(false);
List<MenuItem> submenu = item.getItems();
MenuItem menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.bulkActions"), PageBulkAction.class);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.importObject"), PageImportObject.class, null, null);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.repositoryObjects"), PageDebugList.class);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.repositoryObjectView"), PageDebugView.class, null, createVisibleDisabledBehaviorForEditMenu(PageDebugView.class));
submenu.add(menu);
PageParameters params = new PageParameters();
params.add(PageSystemConfiguration.SELECTED_TAB_INDEX, PageSystemConfiguration.CONFIGURATION_TAB_BASIC);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.basic"), PageSystemConfiguration.class, params, null) {
@Override
public boolean isMenuActive(WebPage page) {
if (!PageSystemConfiguration.class.equals(page.getClass())) {
return false;
}
int index = getSelectedTabForConfiguration(page);
return PageSystemConfiguration.CONFIGURATION_TAB_BASIC == index ? true : false;
}
};
submenu.add(menu);
params = new PageParameters();
params.add(PageSystemConfiguration.SELECTED_TAB_INDEX, PageSystemConfiguration.CONFIGURATION_TAB_NOTIFICATION);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.notifications"), PageSystemConfiguration.class, params, null) {
@Override
public boolean isMenuActive(WebPage page) {
if (!PageSystemConfiguration.class.equals(page.getClass())) {
return false;
}
int index = getSelectedTabForConfiguration(page);
return PageSystemConfiguration.CONFIGURATION_TAB_NOTIFICATION == index ? true : false;
}
};
submenu.add(menu);
params = new PageParameters();
params.add(PageSystemConfiguration.SELECTED_TAB_INDEX, PageSystemConfiguration.CONFIGURATION_TAB_LOGGING);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.logging"), PageSystemConfiguration.class, params, null) {
@Override
public boolean isMenuActive(WebPage page) {
if (!PageSystemConfiguration.class.equals(page.getClass())) {
return false;
}
int index = getSelectedTabForConfiguration(page);
return PageSystemConfiguration.CONFIGURATION_TAB_LOGGING == index ? true : false;
}
};
submenu.add(menu);
params = new PageParameters();
params.add(PageSystemConfiguration.SELECTED_TAB_INDEX, PageSystemConfiguration.CONFIGURATION_TAB_PROFILING);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.profiling"), PageSystemConfiguration.class, params, null) {
@Override
public boolean isMenuActive(WebPage page) {
if (!PageSystemConfiguration.class.equals(page.getClass())) {
return false;
}
int index = getSelectedTabForConfiguration(page);
return PageSystemConfiguration.CONFIGURATION_TAB_PROFILING == index ? true : false;
}
};
submenu.add(menu);
params = new PageParameters();
params.add(PageSystemConfiguration.SELECTED_TAB_INDEX, PageSystemConfiguration.CONFIGURATION_TAB_ADMIN_GUI);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.adminGui"), PageSystemConfiguration.class, params, null) {
@Override
public boolean isMenuActive(WebPage page) {
if (!PageSystemConfiguration.class.equals(page.getClass())) {
return false;
}
int index = getSelectedTabForConfiguration(page);
return PageSystemConfiguration.CONFIGURATION_TAB_ADMIN_GUI == index ? true : false;
}
};
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.shadowsDetails"), PageAccounts.class);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.internals"), PageInternals.class);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.repoQuery"), PageRepositoryQuery.class);
submenu.add(menu);
if (SystemConfigurationHolder.isExperimentalCodeEnabled()) {
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.evaluateMapping"), PageEvaluateMapping.class);
submenu.add(menu);
}
menu = new MenuItem(createStringResource("PageAdmin.menu.top.configuration.about"), PageAbout.class);
submenu.add(menu);
return item;
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageBase method updateBreadcrumbParameters.
public void updateBreadcrumbParameters(String key, Object value) {
List<Breadcrumb> list = getBreadcrumbs();
if (list.isEmpty()) {
return;
}
Breadcrumb bc = list.get(list.size() - 1);
PageParameters params = bc.getParameters();
if (params == null) {
return;
}
params.set(key, value);
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageBase method createCertificationItems.
private MainMenuItem createCertificationItems() {
MainMenuItem item = new MainMenuItem("fa fa-certificate", createStringResource("PageAdmin.menu.top.certification"), null) {
private static final long serialVersionUID = 1L;
@Override
public String getBubbleLabel() {
Integer certWorkItemCount = certWorkItemCountModel.getObject();
if (certWorkItemCount == null || certWorkItemCount == 0) {
return null;
} else {
return certWorkItemCount.toString();
}
}
};
List<MenuItem> submenu = item.getItems();
MenuItem menu = new MenuItem(createStringResource("PageAdmin.menu.top.certification.definitions"), PageCertDefinitions.class);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.certification.newDefinition"), PageCertDefinition.class);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.certification.campaigns"), PageCertCampaigns.class);
submenu.add(menu);
PageParameters params = new PageParameters();
params.add(PageTasks.SELECTED_CATEGORY, TaskCategory.ACCESS_CERTIFICATION);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.certification.scheduling"), PageTasksCertScheduling.class, params, null);
submenu.add(menu);
menu = new MenuItem(createStringResource("PageAdmin.menu.top.certification.decisions"), PageCertDecisions.class);
submenu.add(menu);
return item;
}
Aggregations