use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryEntryRuntimeController method doOrders.
protected void doOrders(UserRequest ureq) {
if (!reSecurity.isEntryAdmin())
return;
WindowControl bwControl = getSubWindowControl("Booking");
OrdersAdminController ctrl = new OrdersAdminController(ureq, addToHistory(ureq, bwControl), toolbarPanel, re.getOlatResource());
listenTo(ctrl);
ordersCtlr = pushController(ureq, translate("details.orders"), ctrl);
currentToolCtr = ordersCtlr;
setActiveTool(ordersLink);
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryEntryRuntimeController method doAccess.
/**
* Open the editor for all repository entry metadata, access control...
* @param ureq
*/
protected void doAccess(UserRequest ureq) {
WindowControl bwControl = getSubWindowControl("Access");
RepositoryEntry refreshedEntry = loadRepositoryEntry();
AuthoringEditAccessController ctrl = new AuthoringEditAccessController(ureq, addToHistory(ureq, bwControl), refreshedEntry);
listenTo(ctrl);
accessCtrl = pushController(ureq, translate("tab.accesscontrol"), ctrl);
setActiveTool(accessLink);
currentToolCtr = accessCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryEntryRuntimeController method doDetails.
protected void doDetails(UserRequest ureq) {
WindowControl bwControl = getSubWindowControl("Infos");
RepositoryEntry entry = loadRepositoryEntry();
RepositoryEntryDetailsController ctrl = new RepositoryEntryDetailsController(ureq, addToHistory(ureq, bwControl), entry, true);
listenTo(ctrl);
detailsCtrl = pushController(ureq, translate("details.header"), ctrl);
currentToolCtr = detailsCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class RepositoryMembersController method doImportMembers.
private void doImportMembers(UserRequest ureq) {
removeAsListenerAndDispose(importMembersWizard);
Step start = new ImportMember_1a_LoginListStep(ureq, repoEntry, null, false);
StepRunnerCallback finish = new StepRunnerCallback() {
@Override
public Step execute(UserRequest uureq, WindowControl wControl, StepsRunContext runContext) {
addMembers(uureq, runContext);
if (runContext.containsKey("notFounds")) {
showWarning("user.notfound", runContext.get("notFounds").toString());
}
return StepsMainRunController.DONE_MODIFIED;
}
};
importMembersWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("import.member"), "o_sel_group_import_logins_wizard");
listenTo(importMembersWizard);
getWindowControl().pushAsModalDialog(importMembersWizard.getInitialComponent());
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class OverviewAuthoringController method doOpenDeletedEntries.
private AuthorListController doOpenDeletedEntries(UserRequest ureq) {
if (deletedEntriesCtrl == null) {
SearchAuthorRepositoryEntryViewParams searchParams = new SearchAuthorRepositoryEntryViewParams(getIdentity(), ureq.getUserSession().getRoles());
if (!isOlatAdmin) {
searchParams.setOwnedResourcesOnly(true);
}
searchParams.setDeleted(true);
OLATResourceable ores = OresHelper.createOLATResourceableInstance("Deleted", 0l);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
deletedEntriesCtrl = new AuthorDeletedListController(ureq, bwControl, "search.deleted", searchParams, false);
listenTo(deletedEntriesCtrl);
} else if (deletedDirty) {
deletedEntriesCtrl.reloadRows();
} else {
deletedEntriesCtrl.reloadDirtyRows();
}
deletedDirty = false;
currentCtrl = deletedEntriesCtrl;
addToHistory(ureq, deletedEntriesCtrl);
mainVC.put("segmentCmp", deletedEntriesCtrl.getStackPanel());
return deletedEntriesCtrl;
}
Aggregations