Roles roles = ureq.getUserSession().getRoles();
boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
List<UserPropertyHandler> userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, isAdministrativeUser);
userDataVC.contextPut("userPropertyHandlers", userPropertyHandlers);
Controller identityAssessmentCtr = new IdentityAssessmentOverviewController(ureq, wControl, efficiencyStatement.getAssessmentNodes());
listenTo(identityAssessmentCtr);//dispose it when this one is disposed
userDataVC.put("assessmentOverviewTable", identityAssessmentCtr.getInitialComponent());
content = userDataVC;
} else {
//message, that no data is available. This may happen in the case the "open efficiency" link is available, while in the meantime an author
//disabled the efficiency statement.
String text = translate("efficiencystatement.nodata");
Controller messageCtr = MessageUIFactory.createErrorMessage(ureq, wControl, null, text);
listenTo(messageCtr);//gets disposed as this controller gets disposed.
content = messageCtr.getInitialComponent();
}
//Content goes to a 3 cols layout without left and right column
LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), null, null, content, null);
listenTo(layoutCtr);
putInitialPanel(layoutCtr.getInitialComponent());