use of org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts in project OpenOLAT by OpenOLAT.
the class BaseFullWebappMinimalLayoutControllerCreator method getFullWebappParts.
/**
* @see org.olat.core.commons.fullWebApp.popup.BaseFullWebappPopupLayout#getFullWebappParts()
*/
@Override
public BaseFullWebappControllerParts getFullWebappParts() {
return new BaseFullWebappControllerParts() {
@Override
public List<SiteInstance> getSiteInstances(UserRequest ureq, WindowControl control) {
// no static sites
return null;
}
@Override
public Controller getContentController(UserRequest ureq, WindowControl wControl) {
// the content for the Pop-up Window
return contentControllerCreator.createController(ureq, wControl);
}
@Override
public LockableController createTopNavController(UserRequest ureq, WindowControl wControl) {
LockableController topnavCtr = null;
// ----------- topnav, optional (e.g. for imprint, logout) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.MinimalTopNavControllerCreator")) {
ControllerCreator topnavControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalTopNavControllerCreator");
topnavCtr = (LockableController) topnavControllerCreator.createController(ureq, wControl);
}
return topnavCtr;
}
@Override
public Controller createHeaderController(UserRequest ureq, WindowControl control) {
Controller headerCtr = null;
// ----------- header, optional (e.g. for logo, advertising ) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.MinimalHeaderControllerCreator")) {
ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalHeaderControllerCreator");
headerCtr = headerControllerCreator.createController(ureq, control);
}
return headerCtr;
}
@Override
public LockableController createFooterController(UserRequest ureq, WindowControl control) {
Controller footerCtr = null;
// ----------- footer, optional (e.g. for copyright, powerd by) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.MinimalFooterControllerCreator")) {
ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalFooterControllerCreator");
footerCtr = footerCreator.createController(ureq, control);
}
return (LockableController) footerCtr;
}
};
}
use of org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts in project OpenOLAT by OpenOLAT.
the class AuthHelper method createAuthHome.
/**
* Create a base chief controller for the current authenticated user request
* and initialize the first screen after login.
*
* @param ureq The authenticated user request.
* @return The chief controller
*/
public static ChiefController createAuthHome(UserRequest ureq) {
if (!ureq.getUserSession().isAuthenticated())
throw new AssertException("not authenticated!");
BaseFullWebappControllerParts authSitesAndNav = new AuthBFWCParts();
ChiefController cc = new BaseFullWebappController(ureq, authSitesAndNav);
Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
return cc;
}
use of org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts in project OpenOLAT by OpenOLAT.
the class AuthHelper method createGuestHome.
/**
* Create a base chief controller for the current anonymous user request
* and initialize the first screen after login. Note, the user request
* must be authenticated, but as an anonymous user and not a known user.
*
* @param ureq The authenticated user request.
* @return The chief controller
*/
private static ChiefController createGuestHome(UserRequest ureq) {
if (!ureq.getUserSession().isAuthenticated())
throw new AssertException("not authenticated!");
BaseFullWebappControllerParts guestSitesAndNav = new GuestBFWCParts();
ChiefController cc = new BaseFullWebappController(ureq, guestSitesAndNav);
Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
return cc;
}
use of org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts in project openolat by klemens.
the class AuthHelper method createGuestHome.
/**
* Create a base chief controller for the current anonymous user request
* and initialize the first screen after login. Note, the user request
* must be authenticated, but as an anonymous user and not a known user.
*
* @param ureq The authenticated user request.
* @return The chief controller
*/
private static ChiefController createGuestHome(UserRequest ureq) {
if (!ureq.getUserSession().isAuthenticated())
throw new AssertException("not authenticated!");
BaseFullWebappControllerParts guestSitesAndNav = new GuestBFWCParts();
ChiefController cc = new BaseFullWebappController(ureq, guestSitesAndNav);
Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
return cc;
}
use of org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts in project openolat by klemens.
the class AuthHelper method createAuthHome.
/**
* Create a base chief controller for the current authenticated user request
* and initialize the first screen after login.
*
* @param ureq The authenticated user request.
* @return The chief controller
*/
public static ChiefController createAuthHome(UserRequest ureq) {
if (!ureq.getUserSession().isAuthenticated())
throw new AssertException("not authenticated!");
BaseFullWebappControllerParts authSitesAndNav = new AuthBFWCParts();
ChiefController cc = new BaseFullWebappController(ureq, authSitesAndNav);
Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
return cc;
}
Aggregations