Search in sources :

Example 1 with DirectDeleteController

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

the class UserAdminMainController method createAndLockDirectUserDeleteController.

/**
 * Creates a DirectDeleteController and acquire a 'delete-user-lock'.
 * The lock is for both direct-deletion and workflow with email.
 * @param ureq
 * @return
 */
private Component createAndLockDirectUserDeleteController(UserRequest ureq, WindowControl wControl) {
    Controller lockCtrl = acquireDeleteUserLock(ureq);
    if (lockCtrl == null) {
        // success -> create new User deletion workflow
        removeAsListenerAndDispose(contentCtr);
        contentCtr = new DirectDeleteController(ureq, wControl);
        listenTo(contentCtr);
        return contentCtr.getInitialComponent();
    } else {
        // failure -> monolog controller with message that lock failed
        return lockCtrl.getInitialComponent();
    }
}
Also used : DirectDeleteController(org.olat.admin.user.delete.DirectDeleteController) 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)

Example 2 with DirectDeleteController

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

the class UserAdminMainController method createAndLockDirectUserDeleteController.

/**
 * Creates a DirectDeleteController and acquire a 'delete-user-lock'.
 * The lock is for both direct-deletion and workflow with email.
 * @param ureq
 * @return
 */
private Component createAndLockDirectUserDeleteController(UserRequest ureq, WindowControl wControl) {
    Controller lockCtrl = acquireDeleteUserLock(ureq);
    if (lockCtrl == null) {
        // success -> create new User deletion workflow
        removeAsListenerAndDispose(contentCtr);
        contentCtr = new DirectDeleteController(ureq, wControl);
        listenTo(contentCtr);
        return contentCtr.getInitialComponent();
    } else {
        // failure -> monolog controller with message that lock failed
        return lockCtrl.getInitialComponent();
    }
}
Also used : DirectDeleteController(org.olat.admin.user.delete.DirectDeleteController) 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)

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