use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class OverviewRepositoryListController method doOpenMark.
private RepositoryEntryListController doOpenMark(UserRequest ureq) {
cleanUp();
SearchMyRepositoryEntryViewParams searchParams = new SearchMyRepositoryEntryViewParams(getIdentity(), ureq.getUserSession().getRoles());
searchParams.setMarked(Boolean.TRUE);
OLATResourceable ores = OresHelper.createOLATResourceableInstance("Favorits", 0l);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
markedStackPanel = new BreadcrumbedStackedPanel("mrkstack", getTranslator(), this);
markedCtrl = new RepositoryEntryListController(ureq, bwControl, searchParams, true, false, "marked", markedStackPanel);
markedStackPanel.pushController(translate("search.mark"), markedCtrl);
listenTo(markedCtrl);
currentCtrl = markedCtrl;
favoritDirty = false;
addToHistory(ureq, markedCtrl);
mainVC.put("segmentCmp", markedStackPanel);
return markedCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryEntryListController method doOpenDetails.
protected void doOpenDetails(UserRequest ureq, RepositoryEntryRow row) {
// to be more consistent: course members see info page within the course, non-course members see it outside the course
if (row.isMember()) {
doOpen(ureq, row, "[Infos:0]");
} else {
removeAsListenerAndDispose(detailsCtrl);
OLATResourceable ores = OresHelper.createOLATResourceableInstance("Infos", 0l);
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
RepositoryEntry entry = repositoryService.loadByKey(row.getKey());
if (entry == null) {
showWarning("repositoryentry.not.existing");
} else {
detailsCtrl = new RepositoryEntryDetailsController(ureq, bwControl, entry, row, false);
listenTo(detailsCtrl);
addToHistory(ureq, detailsCtrl);
String displayName = row.getDisplayName();
stackPanel.pushController(displayName, detailsCtrl);
}
}
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryEntryRuntimeController method doMembers.
protected Activateable2 doMembers(UserRequest ureq) {
if (!reSecurity.isEntryAdmin())
return null;
WindowControl bwControl = getSubWindowControl("MembersMgmt");
RepositoryMembersController ctrl = new RepositoryMembersController(ureq, addToHistory(ureq, bwControl), toolbarPanel, re);
listenTo(ctrl);
membersEditController = pushController(ureq, translate("details.members"), ctrl);
currentToolCtr = membersEditController;
setActiveTool(membersLink);
return membersEditController;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryEntryRuntimeController method doEditSettings.
/**
* Open the editor for all repository entry metadata, access control...
* @param ureq
*/
protected void doEditSettings(UserRequest ureq) {
if (!reSecurity.isEntryAdmin())
return;
WindowControl bwControl = getSubWindowControl("Settings");
RepositoryEntry refreshedEntry = loadRepositoryEntry();
RepositoryEditDescriptionController ctrl = new RepositoryEditDescriptionController(ureq, addToHistory(ureq, bwControl), refreshedEntry);
listenTo(ctrl);
descriptionCtrl = pushController(ureq, translate("settings.editor"), ctrl);
currentToolCtr = descriptionCtrl;
setActiveTool(editDescriptionLink);
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryEntryRuntimeController method doCatalog.
/**
* Internal helper to initiate the add to catalog workflow
* @param ureq
*/
protected void doCatalog(UserRequest ureq) {
if (!reSecurity.isEntryAdmin())
return;
popToRoot(ureq).cleanUp();
WindowControl bwControl = getSubWindowControl("Catalog");
catalogCtlr = new CatalogSettingsController(ureq, addToHistory(ureq, bwControl), toolbarPanel, re);
listenTo(catalogCtlr);
catalogCtlr.initToolbar();
currentToolCtr = catalogCtlr;
setActiveTool(catalogLink);
}
Aggregations