sb.append(chosenIdentity.getUser().getProperty(UserConstants.LASTNAME, ureq.getLocale()));
this.firstLastName = sb.toString();
// Navigation menu
this.menuTree = new MenuTree("menuTree");
GenericTreeModel tm = buildTreeModel(firstLastName);
menuTree.setTreeModel(tm);
menuTree.setSelectedNodeId(tm.getRootNode().getChildAt(0).getIdent());
menuTree.addListener(this);
LayoutMain3ColsController columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), menuTree, null, main, "userinfomain");
listenTo(columnLayoutCtr);
//
putInitialPanel(columnLayoutCtr.getInitialComponent());
// Activate child controllers if a usable context entry is found
BusinessControl bc = getWindowControl().getBusinessControl();
ContextEntry ce = bc.popLauncherContextEntry();
if (ce != null) { // a context path is left for me
OLATResourceable ores = ce.getOLATResourceable();
if (OresHelper.equals(ores, BUSINESS_CONTROL_TYPE_FOLDER)) {
// Activate folder controller
menuTree.setSelectedNode(tm.findNodeByUserObject(CMD_FOLDER));
main.setContent(createComponent(ureq, CMD_FOLDER, chosenIdentity));
}
}
}