use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.
the class OlatFooterController method doOpenImpressum.
protected void doOpenImpressum(UserRequest ureq) {
ControllerCreator impressumControllerCreator = new ControllerCreator() {
@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
return new ImpressumMainController(lureq, lwControl);
}
};
PopupBrowserWindow popupBrowserWindow;
if (ureq.getUserSession().isAuthenticated()) {
popupBrowserWindow = Windows.getWindows(ureq).getWindowManager().createNewPopupBrowserWindowFor(ureq, impressumControllerCreator);
} else {
popupBrowserWindow = Windows.getWindows(ureq).getWindowManager().createNewUnauthenticatedPopupWindowFor(ureq, impressumControllerCreator);
}
popupBrowserWindow.open(ureq);
}
use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.
the class GuestBFWCParts method createHeaderController.
/**
* @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createHeaderController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
*/
@Override
public Controller createHeaderController(UserRequest ureq, WindowControl wControl) {
Controller headerCtr = null;
// ----------- header, optional (e.g. for logo, advertising ) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.GuestHeaderControllerCreator")) {
ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.GuestHeaderControllerCreator");
headerCtr = headerControllerCreator.createController(ureq, wControl);
}
return headerCtr;
}
use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.
the class GuestBFWCParts method createFooterController.
/**
* @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createFooterController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
*/
@Override
public LockableController createFooterController(UserRequest ureq, WindowControl wControl) {
Controller footerCtr = null;
// ----------- footer, optional (e.g. for copyright, powered by) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.GuestFooterControllerCreator")) {
ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.GuestFooterControllerCreator");
footerCtr = footerCreator.createController(ureq, wControl);
} else {
footerCtr = new OlatFooterController(ureq, wControl);
}
return (LockableController) footerCtr;
}
use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.
the class AuthBFWCParts method createHeaderController.
/**
* @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createHeaderController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
*/
@Override
public Controller createHeaderController(UserRequest ureq, WindowControl wControl) {
Controller headerCtr = null;
// ----------- header, optional (e.g. for logo, advertising ) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.HeaderControllerCreator")) {
ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.HeaderControllerCreator");
headerCtr = headerControllerCreator.createController(ureq, wControl);
}
return headerCtr;
}
use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.
the class AuthBFWCParts method createTopNavController.
/**
* @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createTopNavController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
*/
@Override
public LockableController createTopNavController(UserRequest ureq, WindowControl wControl) {
Controller topnavCtr = null;
// ----------- topnav, optional (e.g. for imprint, logout) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.TopNavControllerCreator")) {
ControllerCreator topnavControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.TopNavControllerCreator");
topnavCtr = topnavControllerCreator.createController(ureq, wControl);
}
return (LockableController) topnavCtr;
}
Aggregations