use of org.entando.entando.apsadmin.system.services.shortcut.model.MenuSection in project entando-core by entando.
the class ShortcutDefDOM method getSectionMenus.
public Map<String, MenuSection> getSectionMenus() {
Map<String, MenuSection> menuSections = new HashMap<String, MenuSection>();
Element menuSectionsElement = this._doc.getRootElement().getChild(MENUSECTIONS_ELEMENT_NAME);
if (null == menuSectionsElement) {
return menuSections;
}
List<Element> menuSectionElements = menuSectionsElement.getChildren();
for (int i = 0; i < menuSectionElements.size(); i++) {
Element menuSectionElement = menuSectionElements.get(i);
String id = menuSectionElement.getAttributeValue(MENUSECTION_ID_ATTRIBUTE_NAME);
MenuSection menuSection = new MenuSection(id);
this.extractDescriptions(menuSectionElement, menuSection);
menuSections.put(menuSection.getId(), menuSection);
}
return menuSections;
}
use of org.entando.entando.apsadmin.system.services.shortcut.model.MenuSection in project entando-core by entando.
the class ShortcutLoader method completeLoading.
private void completeLoading() {
Iterator<Shortcut> shorCutIter = this.getShortcuts().values().iterator();
while (shorCutIter.hasNext()) {
Shortcut shortcut = shorCutIter.next();
String menuSectionCode = shortcut.getMenuSectionCode();
MenuSection section = this.getManuSections().get(menuSectionCode);
shortcut.setMenuSection(section);
}
}
Aggregations