navigationItems.toArray(new NavigationItem[] {}));
return topologyRegion;
}
private NavigationSection buildConfigurationSection() {
NavigationItem systemSettingsItem = new NavigationItem(SystemSettingsView.VIEW_ID, new ViewFactory() {
public Canvas createView() {
return new SystemSettingsView();
}
}, getGlobalPermissions().contains(Permission.MANAGE_SETTINGS));
systemSettingsItem.setRefreshRequired(true); // refresh so it always reloads the latest settings
NavigationItem alertTemplatesItem = new NavigationItem(AlertDefinitionTemplateTypeView.VIEW_ID,
new ViewFactory() {
public Canvas createView() {
return new AlertDefinitionTemplateTypeView();
}
});
alertTemplatesItem.setRefreshRequired(true); // we always need a new page
NavigationItem driftTemplatesItem = new NavigationItem(DriftDefinitionTemplateTypeView.VIEW_ID,
new ViewFactory() {
public Canvas createView() {
return new DriftDefinitionTemplateTypeView();
}
});
driftTemplatesItem.setRefreshRequired(true); // we always need a new page
NavigationItem metricTemplatesItem = new NavigationItem(MetricTemplateTypeView.VIEW_ID, new ViewFactory() {
public Canvas createView() {
return new MetricTemplateTypeView();
}
});
metricTemplatesItem.setRefreshRequired(true); // we always need a new page
NavigationItem ignoreResourceTypesItem = new NavigationItem(IgnoreResourceTypesView.VIEW_ID, new ViewFactory() {
public Canvas createView() {
return new IgnoreResourceTypesView();
}
});
ignoreResourceTypesItem.setRefreshRequired(true); // we always need a new page
NavigationItem missingResourcePolicyItem = new NavigationItem(
MissingPolicyResourceTypesView.VIEW_ID,
new ViewFactory() {
public Canvas createView() {
return new MissingPolicyResourceTypesView();
}
});
missingResourcePolicyItem.setRefreshRequired(true); // we always need a new page
NavigationItem downloadsItem = new NavigationItem(DownloadsView.VIEW_ID, new ViewFactory() {
public Canvas createView() {
return new DownloadsView();
}
});
NavigationItem agentPluginsItem = new NavigationItem(AgentPluginTableView.VIEW_ID, new ViewFactory() {
public Canvas createView() {
return new AgentPluginTableView();
}
}, getGlobalPermissions().contains(Permission.MANAGE_SETTINGS));
NavigationItem serverPluginsItem = new NavigationItem(ServerPluginTableView.VIEW_ID, new ViewFactory() {
public Canvas createView() {
return new ServerPluginTableView();
}
}, getGlobalPermissions().contains(Permission.MANAGE_SETTINGS));