use of org.olat.core.gui.control.Controller 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.Controller 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;
}
use of org.olat.core.gui.control.Controller in project OpenOLAT by OpenOLAT.
the class DmzBFWCParts method createFooterController.
@Override
public LockableController createFooterController(UserRequest ureq, WindowControl wControl) {
Controller footerCtr = null;
// ----------- footer, optional (e.g. for copyright, powered by) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.DMZFooterControllerCreator")) {
ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.DMZFooterControllerCreator");
footerCtr = footerCreator.createController(ureq, wControl);
} else {
footerCtr = new OlatFooterController(ureq, wControl);
}
return (LockableController) footerCtr;
}
use of org.olat.core.gui.control.Controller in project OpenOLAT by OpenOLAT.
the class DmzBFWCParts method createHeaderController.
@Override
public Controller createHeaderController(UserRequest ureq, WindowControl wControl) {
Controller headerCtr = null;
// ----------- header, optional (e.g. for logo, advertising ) ------------------
if (CoreSpringFactory.containsBean("fullWebApp.DMZHeaderControllerCreator")) {
ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.DMZHeaderControllerCreator");
headerCtr = headerControllerCreator.createController(ureq, wControl);
}
return headerCtr;
}
use of org.olat.core.gui.control.Controller in project OpenOLAT by OpenOLAT.
the class EvaluationFormHandler method getContent.
@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints hints) {
Controller ctrl = null;
if (element instanceof EvaluationFormPart) {
PortfolioService portfolioService = CoreSpringFactory.getImpl(PortfolioService.class);
// find assignment
EvaluationFormPart eva = (EvaluationFormPart) element;
PageBody body = eva.getBody();
Assignment assignment = portfolioService.getAssignment(body);
if (assignment == null) {
ctrl = getController(ureq, wControl, body, eva);
} else {
ctrl = getControllerForAssignment(ureq, wControl, body, assignment, hints.isOnePage());
}
}
if (ctrl == null) {
Translator translator = Util.createPackageTranslator(PortfolioHomeController.class, ureq.getLocale());
String title = translator.translate("warning.evaluation.not.visible.title");
String text = translator.translate("warning.evaluation.not.visible.text");
ctrl = MessageUIFactory.createWarnMessage(ureq, wControl, title, text);
}
return new PageRunControllerElement(ctrl);
}
Aggregations