use of org.olat.repository.ui.author.ConfirmCloseController in project OpenOLAT by OpenOLAT.
the class RepositoryEntryLifeCycleChangeController method doConfirmCloseResource.
private void doConfirmCloseResource(UserRequest ureq) {
if (!reSecurity.isEntryAdmin()) {
throw new OLATSecurityException("Trying to close, but not allowed: user = " + ureq.getIdentity());
}
List<RepositoryEntry> entryToClose = Collections.singletonList(re);
confirmCloseCtrl = new ConfirmCloseController(ureq, getWindowControl(), entryToClose);
listenTo(confirmCloseCtrl);
String title = translate("read.only.header", re.getDisplayname());
cmc = new CloseableModalController(getWindowControl(), "close", confirmCloseCtrl.getInitialComponent(), true, title);
listenTo(cmc);
cmc.activate();
}
use of org.olat.repository.ui.author.ConfirmCloseController in project openolat by klemens.
the class RepositoryEntryLifeCycleChangeController method doConfirmCloseResource.
private void doConfirmCloseResource(UserRequest ureq) {
if (!reSecurity.isEntryAdmin()) {
throw new OLATSecurityException("Trying to close, but not allowed: user = " + ureq.getIdentity());
}
List<RepositoryEntry> entryToClose = Collections.singletonList(re);
confirmCloseCtrl = new ConfirmCloseController(ureq, getWindowControl(), entryToClose);
listenTo(confirmCloseCtrl);
String title = translate("read.only.header", re.getDisplayname());
cmc = new CloseableModalController(getWindowControl(), "close", confirmCloseCtrl.getInitialComponent(), true, title);
listenTo(cmc);
cmc.activate();
}
Aggregations