use of org.motechproject.server.web.dto.ModuleMenuLink in project motech by motech.
the class MenuBuilder method serverModulesMenuSection.
private ModuleMenuSection serverModulesMenuSection(List<String> userRoles) {
ModuleMenuSection modulesSection = new ModuleMenuSection("server.modules", false);
for (ModuleRegistrationData moduleRegistrationData : getModulesWithoutSubMenu(userRoles)) {
String name = moduleRegistrationData.getModuleName();
String angularName = getAngularModuleName(moduleRegistrationData);
boolean needsAttention = moduleRegistrationData.isNeedsAttention();
// these menu items don't make use of urls, the name is sufficient
ModuleMenuLink link = new ModuleMenuLink(name, angularName, determineDefaultTab(moduleRegistrationData), needsAttention, moduleRegistrationData.getDocumentationUrl());
modulesSection.addLink(link);
}
return modulesSection;
}
Aggregations