Search in sources :

Example 61 with WindowControl

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);
}
Also used : OrdersAdminController(org.olat.resource.accesscontrol.ui.OrdersAdminController) WindowControl(org.olat.core.gui.control.WindowControl)

Example 62 with WindowControl

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;
}
Also used : AuthoringEditAccessController(org.olat.repository.ui.author.AuthoringEditAccessController) RepositoryEntry(org.olat.repository.RepositoryEntry) WindowControl(org.olat.core.gui.control.WindowControl)

Example 63 with WindowControl

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;
}
Also used : RepositoryEntry(org.olat.repository.RepositoryEntry) WindowControl(org.olat.core.gui.control.WindowControl) RepositoryEntryDetailsController(org.olat.repository.ui.list.RepositoryEntryDetailsController)

Example 64 with WindowControl

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());
}
Also used : StepsMainRunController(org.olat.core.gui.control.generic.wizard.StepsMainRunController) ImportMember_1a_LoginListStep(org.olat.course.member.wizard.ImportMember_1a_LoginListStep) Step(org.olat.core.gui.control.generic.wizard.Step) ImportMember_1b_ChooseMemberStep(org.olat.course.member.wizard.ImportMember_1b_ChooseMemberStep) ImportMember_1a_LoginListStep(org.olat.course.member.wizard.ImportMember_1a_LoginListStep) WindowControl(org.olat.core.gui.control.WindowControl) StepsRunContext(org.olat.core.gui.control.generic.wizard.StepsRunContext) StepRunnerCallback(org.olat.core.gui.control.generic.wizard.StepRunnerCallback) UserRequest(org.olat.core.gui.UserRequest)

Example 65 with WindowControl

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;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl) SearchAuthorRepositoryEntryViewParams(org.olat.repository.model.SearchAuthorRepositoryEntryViewParams)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)628 OLATResourceable (org.olat.core.id.OLATResourceable)300 UserRequest (org.olat.core.gui.UserRequest)136 Controller (org.olat.core.gui.control.Controller)70 ControllerCreator (org.olat.core.gui.control.creator.ControllerCreator)68 RepositoryEntry (org.olat.repository.RepositoryEntry)68 StepsMainRunController (org.olat.core.gui.control.generic.wizard.StepsMainRunController)64 ContextEntry (org.olat.core.id.context.ContextEntry)58 Step (org.olat.core.gui.control.generic.wizard.Step)56 StepRunnerCallback (org.olat.core.gui.control.generic.wizard.StepRunnerCallback)56 StepsRunContext (org.olat.core.gui.control.generic.wizard.StepsRunContext)56 BusinessControl (org.olat.core.id.context.BusinessControl)56 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)46 ArrayList (java.util.ArrayList)42 Identity (org.olat.core.id.Identity)38 StateSite (org.olat.core.id.context.StateSite)32 PopupBrowserWindow (org.olat.core.gui.control.generic.popup.PopupBrowserWindow)28 AssertException (org.olat.core.logging.AssertException)24 QuestionsController (org.olat.modules.qpool.ui.QuestionsController)22 List (java.util.List)20