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();
}
}
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();
}
}
Aggregations