* @return chiefcontroller
*/
private static ChiefController createAuthHome(UserRequest ureq) {
if (!ureq.getUserSession().isAuthenticated()) throw new AssertException("not authenticated!");
BaseChiefControllerCreator bbc = new BaseChiefControllerCreator();
bbc.setContentControllerCreator(/*this is later injected by spring*/new ControllerCreator() {
public Controller createController(UserRequest lureq, WindowControl lwControl) {
BaseFullWebappControllerParts authSitesAndNav = new AuthBFWCParts();
return new BaseFullWebappController(lureq, lwControl, authSitesAndNav );
}
});
ChiefController cc = bbc.createChiefController(ureq);
Windows.getWindows(ureq.getUserSession()).setAttribute("AUTHCHIEFCONTROLLER", cc);
Tracing.logDebug("set session-attribute 'AUTHCHIEFCONTROLLER'", AuthHelper.class);
return cc;
}