Search in sources :

Example 1 with TabbedPaneController

use of org.olat.admin.user.delete.TabbedPaneController in project OpenOLAT by OpenOLAT.

the class UserAdminMainController method createAndLockUserDeleteController.

/**
 * Creates a TabbedPaneController (delete workflow with email)  and acquire a 'delete-user-lock'.
 * The lock is for both direct-deletion and workflow with email.
 * @param ureq
 * @return
 */
private Component createAndLockUserDeleteController(UserRequest ureq, WindowControl wControl) {
    Controller lockCtrl = acquireDeleteUserLock(ureq);
    if (lockCtrl == null) {
        // success -> create new User deletion workflow
        activatePaneInDetailView = null;
        removeAsListenerAndDispose(contentCtr);
        contentCtr = new TabbedPaneController(ureq, wControl);
        listenTo(contentCtr);
        return contentCtr.getInitialComponent();
    } else {
        // failure -> monolog controller with message that lock failed
        return lockCtrl.getInitialComponent();
    }
}
Also used : UserCreateController(org.olat.admin.user.UserCreateController) TabbedPaneController(org.olat.admin.user.delete.TabbedPaneController) NewUsersNotificationsController(org.olat.admin.user.NewUsersNotificationsController) DirectDeleteController(org.olat.admin.user.delete.DirectDeleteController) LayoutMain3ColsController(org.olat.core.commons.fullWebApp.LayoutMain3ColsController) UserAdminController(org.olat.admin.user.UserAdminController) UserImportController(org.olat.admin.user.imp.UserImportController) Controller(org.olat.core.gui.control.Controller) UsermanagerUserSearchController(org.olat.admin.user.UsermanagerUserSearchController) MainLayoutBasicController(org.olat.core.gui.control.controller.MainLayoutBasicController) TabbedPaneController(org.olat.admin.user.delete.TabbedPaneController)

Example 2 with TabbedPaneController

use of org.olat.admin.user.delete.TabbedPaneController in project openolat by klemens.

the class UserAdminMainController method createAndLockUserDeleteController.

/**
 * Creates a TabbedPaneController (delete workflow with email)  and acquire a 'delete-user-lock'.
 * The lock is for both direct-deletion and workflow with email.
 * @param ureq
 * @return
 */
private Component createAndLockUserDeleteController(UserRequest ureq, WindowControl wControl) {
    Controller lockCtrl = acquireDeleteUserLock(ureq);
    if (lockCtrl == null) {
        // success -> create new User deletion workflow
        activatePaneInDetailView = null;
        removeAsListenerAndDispose(contentCtr);
        contentCtr = new TabbedPaneController(ureq, wControl);
        listenTo(contentCtr);
        return contentCtr.getInitialComponent();
    } else {
        // failure -> monolog controller with message that lock failed
        return lockCtrl.getInitialComponent();
    }
}
Also used : UserCreateController(org.olat.admin.user.UserCreateController) TabbedPaneController(org.olat.admin.user.delete.TabbedPaneController) NewUsersNotificationsController(org.olat.admin.user.NewUsersNotificationsController) DirectDeleteController(org.olat.admin.user.delete.DirectDeleteController) LayoutMain3ColsController(org.olat.core.commons.fullWebApp.LayoutMain3ColsController) UserAdminController(org.olat.admin.user.UserAdminController) UserImportController(org.olat.admin.user.imp.UserImportController) Controller(org.olat.core.gui.control.Controller) UsermanagerUserSearchController(org.olat.admin.user.UsermanagerUserSearchController) MainLayoutBasicController(org.olat.core.gui.control.controller.MainLayoutBasicController) TabbedPaneController(org.olat.admin.user.delete.TabbedPaneController)

Aggregations

NewUsersNotificationsController (org.olat.admin.user.NewUsersNotificationsController)2 UserAdminController (org.olat.admin.user.UserAdminController)2 UserCreateController (org.olat.admin.user.UserCreateController)2 UsermanagerUserSearchController (org.olat.admin.user.UsermanagerUserSearchController)2 DirectDeleteController (org.olat.admin.user.delete.DirectDeleteController)2 TabbedPaneController (org.olat.admin.user.delete.TabbedPaneController)2 UserImportController (org.olat.admin.user.imp.UserImportController)2 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)2 Controller (org.olat.core.gui.control.Controller)2 MainLayoutBasicController (org.olat.core.gui.control.controller.MainLayoutBasicController)2