return null;
}
private TreeModel buildTreeModel() {
GenericTreeNode gtnChild, admin, confSub;
Translator translator = getTranslator();
GenericTreeModel gtm = new GenericTreeModel();
admin = new GenericTreeNode();
admin.setTitle(translator.translate("menu.admin"));
admin.setUserObject("admin");
admin.setAltText(translator.translate("menu.admin.alt"));
gtm.setRootNode(admin);
//
// The sysinfo stuff
//
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.sysinfo"));
gtnChild.setUserObject("sysinfo");
gtnChild.setAltText(translator.translate("menu.sysinfo.alt"));
admin.addChild(gtnChild);
admin.setDelegate(gtnChild);
//
// The system config submenu
//
confSub = new GenericTreeNode();
confSub.setTitle(translator.translate("menu.config"));
confSub.setUserObject("config");
confSub.setAltText(translator.translate("menu.config.alt"));
admin.addChild(confSub);
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.layout"));
gtnChild.setUserObject("layout");
gtnChild.setAltText(translator.translate("menu.layout.alt"));
confSub.addChild(gtnChild);
confSub.setDelegate(gtnChild);
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.i18n"));
gtnChild.setUserObject("i18n");
gtnChild.setAltText(translator.translate("menu.i18n.alt"));
confSub.addChild(gtnChild);
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.ajax"));
gtnChild.setUserObject("ajax");
gtnChild.setAltText(translator.translate("menu.ajax.alt"));
confSub.addChild(gtnChild);
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.quota"));
gtnChild.setUserObject("quota");
gtnChild.setAltText(translator.translate("menu.quota.alt"));
confSub.addChild(gtnChild);
if(CoreSpringFactory.containsBean("org.olat.core.util.vfs.version.FolderVersioningConfigurator")) {
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.versions"));
gtnChild.setUserObject("versions");
gtnChild.setAltText(translator.translate("menu.versions.alt"));
confSub.addChild(gtnChild);
}
//
// other tools and stuff
//
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.registration"));
gtnChild.setUserObject("registration");
gtnChild.setAltText(translator.translate("menu.registration.alt"));
admin.addChild(gtnChild);
if (InstantMessagingModule.isEnabled()) {
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.imadmin"));
gtnChild.setUserObject("imadmin");
gtnChild.setAltText(translator.translate("menu.imadmin.alt"));
admin.addChild(gtnChild);
}
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.advancedproperties"));
gtnChild.setUserObject("advancedproperties");
gtnChild.setAltText(translator.translate("menu.advancedproperties.alt"));
admin.addChild(gtnChild);
// show translation tool or cusomize link, not both
if (I18nModule.isTransToolEnabled()) {
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.onlinetranslation"));
gtnChild.setUserObject("onlinetranslation");
gtnChild.setAltText(translator.translate("menu.onlinetranslation.alt"));
admin.addChild(gtnChild);
} else if (I18nModule.isOverlayEnabled()) {
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.onlinetranslation.customize"));
gtnChild.setUserObject("onlinetranslation");
gtnChild.setAltText(translator.translate("menu.onlinetranslation.customize.alt"));
admin.addChild(gtnChild);
}
if (SearchServiceImpl.getInstance().isLocal()) {
//since 6.0.3 the search service is distributed
//we have to check if we are the instance having
//the local search service, e.g. the one for creating the index
//and deliver results for queries.
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.search"));
gtnChild.setUserObject("search");
gtnChild.setAltText(translator.translate("menu.search.alt"));
admin.addChild(gtnChild);
}
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.notifications"));
gtnChild.setUserObject("notifications");
gtnChild.setAltText(translator.translate("menu.notifications.alt"));
admin.addChild(gtnChild);
gtnChild = new GenericTreeNode();
gtnChild.setTitle(translator.translate("menu.statistics"));
gtnChild.setUserObject("statistics");
gtnChild.setAltText(translator.translate("menu.statistics.alt"));
admin.addChild(gtnChild);
// todo: 2009-09.22/cg move JMX menu-item to testing tab, because it is a beta-version
// gtnChild = new GenericTreeNode();
// gtnChild.setTitle(translator.translate("menu.jmx"));