use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class BinderController method doOpenPublish.
private PublishController doOpenPublish(UserRequest ureq) {
OLATResourceable bindersOres = OresHelper.createOLATResourceableInstance("Publish", 0l);
WindowControl swControl = addToHistory(ureq, bindersOres, null);
publishCtrl = new PublishController(ureq, swControl, stackPanel, secCallback, binder, config);
listenTo(publishCtrl);
popUpToBinderController(ureq);
stackPanel.pushController(translate("portfolio.publish"), publishCtrl);
segmentButtonsCmp.setSelectedButton(publishLink);
return publishCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class BinderController method doOpenOverview.
private TableOfContentController doOpenOverview(UserRequest ureq) {
popUpToBinderController(ureq);
if (overviewCtrl == null) {
OLATResourceable bindersOres = OresHelper.createOLATResourceableInstance("Toc", 0l);
WindowControl swControl = addToHistory(ureq, bindersOres, null);
overviewCtrl = new TableOfContentController(ureq, swControl, stackPanel, secCallback, binder, config);
// because it will not end in the stackPanel as a pushed controller
overviewCtrl.initTools();
listenTo(overviewCtrl);
} else {
overviewCtrl.loadModel();
overviewCtrl.updateSummaryView(ureq);
}
segmentButtonsCmp.setSelectedButton(overviewLink);
mainPanel.setContent(overviewCtrl.getInitialComponent());
return overviewCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class BinderListController method doOpenBinder.
protected BinderController doOpenBinder(UserRequest ureq, Binder binder) {
if (binder == null) {
showWarning("warning.portfolio.not.found");
return null;
} else {
removeAsListenerAndDispose(binderCtrl);
portfolioService.updateBinderUserInformations(binder, getIdentity());
OLATResourceable binderOres = OresHelper.createOLATResourceableInstance("Binder", binder.getKey());
WindowControl swControl = addToHistory(ureq, binderOres, null);
BinderSecurityCallback secCallback = BinderSecurityCallbackFactory.getCallbackForOwnedBinder(binder);
BinderConfiguration config = BinderConfiguration.createConfig(binder);
binderCtrl = new BinderController(ureq, swControl, stackPanel, secCallback, binder, config);
listenTo(binderCtrl);
stackPanel.pushController(binder.getTitle(), binderCtrl);
return binderCtrl;
}
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class BinderRuntimeController method doAssessmentTool.
private Activateable2 doAssessmentTool(UserRequest ureq) {
OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl swControl = addToHistory(ureq, ores, null);
if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
AssessableResource el = getAssessableElement();
AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
listenTo(ctrl);
assessmentToolCtrl = pushController(ureq, "Statistics", ctrl);
currentToolCtr = assessmentToolCtrl;
setActiveTool(assessmentLink);
enableRuntimeNavBar(false);
return assessmentToolCtrl;
}
return null;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class DeletedBinderController method doOpenBinder.
@Override
protected BinderController doOpenBinder(UserRequest ureq, Binder binder) {
if (binder == null) {
showWarning("warning.portfolio.not.found");
return null;
} else {
removeAsListenerAndDispose(binderCtrl);
OLATResourceable binderOres = OresHelper.createOLATResourceableInstance("Binder", binder.getKey());
WindowControl swControl = addToHistory(ureq, binderOres, null);
BinderSecurityCallback secCallback = BinderSecurityCallbackFactory.getCallbackForDeletedBinder();
BinderConfiguration config = BinderConfiguration.createConfig(binder);
binderCtrl = new BinderController(ureq, swControl, stackPanel, secCallback, binder, config);
listenTo(binderCtrl);
stackPanel.pushController(binder.getTitle(), binderCtrl);
return binderCtrl;
}
}
Aggregations