use of org.olat.repository.ui.RepositoryEntryLifeCycleChangeController in project OpenOLAT by OpenOLAT.
the class CourseRuntimeController method doLifeCycleChange.
private void doLifeCycleChange(UserRequest ureq) {
List<Link> breadCrumbs = toolbarPanel.getBreadCrumbs();
BreadCrumb lastCrumb = null;
if (breadCrumbs.size() > 0) {
lastCrumb = (BreadCrumb) breadCrumbs.get(breadCrumbs.size() - 1).getUserObject();
}
if (lastCrumb == null || lastCrumb.getController() != lifeCycleChangeCtr) {
// only create and add to stack if not already there
lifeCycleChangeCtr = new RepositoryEntryLifeCycleChangeController(ureq, getWindowControl(), getRepositoryEntry(), reSecurity, handler);
listenTo(lifeCycleChangeCtr);
currentToolCtr = lifeCycleChangeCtr;
toolbarPanel.pushController(translate("details.lifecycle.change"), lifeCycleChangeCtr);
}
}
use of org.olat.repository.ui.RepositoryEntryLifeCycleChangeController in project openolat by klemens.
the class CourseRuntimeController method doLifeCycleChange.
private void doLifeCycleChange(UserRequest ureq) {
List<Link> breadCrumbs = toolbarPanel.getBreadCrumbs();
BreadCrumb lastCrumb = null;
if (breadCrumbs.size() > 0) {
lastCrumb = (BreadCrumb) breadCrumbs.get(breadCrumbs.size() - 1).getUserObject();
}
if (lastCrumb == null || lastCrumb.getController() != lifeCycleChangeCtr) {
// only create and add to stack if not already there
lifeCycleChangeCtr = new RepositoryEntryLifeCycleChangeController(ureq, getWindowControl(), getRepositoryEntry(), reSecurity, handler);
listenTo(lifeCycleChangeCtr);
currentToolCtr = lifeCycleChangeCtr;
toolbarPanel.pushController(translate("details.lifecycle.change"), lifeCycleChangeCtr);
}
}
Aggregations