Skip to content
Snippets Groups Projects
Commit 778dc67a authored by Andreas Parschalk's avatar Andreas Parschalk
Browse files

Merge remote-tracking branch 'upstream/master'

parents 0f0f46e2 3be89f43
No related branches found
No related tags found
No related merge requests found
Showing
with 147 additions and 65 deletions
...@@ -36,8 +36,8 @@ import org.olat.course.editor.ConditionAccessEditConfig; ...@@ -36,8 +36,8 @@ import org.olat.course.editor.ConditionAccessEditConfig;
import org.olat.course.editor.CourseEditorEnv; import org.olat.course.editor.CourseEditorEnv;
import org.olat.course.editor.NodeEditController; import org.olat.course.editor.NodeEditController;
import org.olat.course.editor.StatusDescription; import org.olat.course.editor.StatusDescription;
import org.olat.course.nodes.opencast.ui.OpencastDisplayController;
import org.olat.course.nodes.opencast.ui.OpencastEditController; import org.olat.course.nodes.opencast.ui.OpencastEditController;
import org.olat.course.nodes.opencast.ui.OpencastRunController;
import org.olat.course.run.navigation.NodeRunConstructionResult; import org.olat.course.run.navigation.NodeRunConstructionResult;
import org.olat.course.run.userview.CourseNodeSecurityCallback; import org.olat.course.run.userview.CourseNodeSecurityCallback;
import org.olat.course.run.userview.UserCourseEnvironment; import org.olat.course.run.userview.UserCourseEnvironment;
...@@ -95,7 +95,7 @@ public class OpencastCourseNode extends AbstractAccessableCourseNode { ...@@ -95,7 +95,7 @@ public class OpencastCourseNode extends AbstractAccessableCourseNode {
String message = trans.translate("freezenoaccess.message"); String message = trans.translate("freezenoaccess.message");
runCtrl = MessageUIFactory.createInfoMessage(ureq, wControl, title, message); runCtrl = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
} else { } else {
runCtrl = new OpencastDisplayController(ureq, wControl, this, userCourseEnv); runCtrl = new OpencastRunController(ureq, wControl, this, userCourseEnv);
} }
Controller ctrl = TitledWrapperHelper.getWrapper(ureq, wControl, runCtrl, this, ICON_CSS); Controller ctrl = TitledWrapperHelper.getWrapper(ureq, wControl, runCtrl, this, ICON_CSS);
return new NodeRunConstructionResult(ctrl); return new NodeRunConstructionResult(ctrl);
......
...@@ -37,12 +37,8 @@ import org.olat.core.util.StringHelper; ...@@ -37,12 +37,8 @@ import org.olat.core.util.StringHelper;
import org.olat.course.editor.NodeEditController; import org.olat.course.editor.NodeEditController;
import org.olat.course.nodes.OpencastCourseNode; import org.olat.course.nodes.OpencastCourseNode;
import org.olat.modules.ModuleConfiguration; import org.olat.modules.ModuleConfiguration;
import org.olat.modules.opencast.OpencastEvent;
import org.olat.modules.opencast.OpencastEventProvider; import org.olat.modules.opencast.OpencastEventProvider;
import org.olat.modules.opencast.OpencastSeries;
import org.olat.modules.opencast.OpencastSeriesProvider; import org.olat.modules.opencast.OpencastSeriesProvider;
import org.olat.modules.opencast.OpencastService;
import org.springframework.beans.factory.annotation.Autowired;
/** /**
* *
...@@ -67,9 +63,6 @@ public class OpencastConfigController extends FormBasicController { ...@@ -67,9 +63,6 @@ public class OpencastConfigController extends FormBasicController {
private final ModuleConfiguration config; private final ModuleConfiguration config;
@Autowired
private OpencastService opencastService;
public OpencastConfigController(UserRequest ureq, WindowControl wControl, OpencastCourseNode courseNode) { public OpencastConfigController(UserRequest ureq, WindowControl wControl, OpencastCourseNode courseNode) {
super(ureq, wControl); super(ureq, wControl);
config = courseNode.getModuleConfiguration(); config = courseNode.getModuleConfiguration();
...@@ -88,10 +81,7 @@ public class OpencastConfigController extends FormBasicController { ...@@ -88,10 +81,7 @@ public class OpencastConfigController extends FormBasicController {
String seriesIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_SERIES_IDENTIFIER, null); String seriesIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_SERIES_IDENTIFIER, null);
String seriesTitle = null; String seriesTitle = null;
if (seriesIdentifier != null) { if (seriesIdentifier != null) {
OpencastSeries series = opencastService.getSeries(seriesIdentifier); seriesTitle = config.getStringValue(OpencastCourseNode.CONFIG_TITLE);
if (series != null) {
seriesTitle = series.getTitle();
}
} }
seriesEl = uifactory.addTextElementWithAutoCompleter("config.series", "config.series", 128, seriesTitle, formLayout); seriesEl = uifactory.addTextElementWithAutoCompleter("config.series", "config.series", 128, seriesTitle, formLayout);
seriesEl.setListProvider(new OpencastSeriesProvider(getIdentity(), MORE_KEY), ureq.getUserSession()); seriesEl.setListProvider(new OpencastSeriesProvider(getIdentity(), MORE_KEY), ureq.getUserSession());
...@@ -101,10 +91,7 @@ public class OpencastConfigController extends FormBasicController { ...@@ -101,10 +91,7 @@ public class OpencastConfigController extends FormBasicController {
String eventIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_EVENT_IDENTIFIER, null); String eventIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_EVENT_IDENTIFIER, null);
String eventTitle = null; String eventTitle = null;
if (eventIdentifier != null) { if (eventIdentifier != null) {
OpencastEvent event = opencastService.getEvent(eventIdentifier); eventTitle = config.getStringValue(OpencastCourseNode.CONFIG_TITLE);
if (event != null) {
eventTitle = event.getTitle();
}
} }
eventEl = uifactory.addTextElementWithAutoCompleter("config.event", "config.event", 128, eventTitle, formLayout); eventEl = uifactory.addTextElementWithAutoCompleter("config.event", "config.event", 128, eventTitle, formLayout);
eventEl.setListProvider(new OpencastEventProvider(getIdentity(), MORE_KEY), ureq.getUserSession()); eventEl.setListProvider(new OpencastEventProvider(getIdentity(), MORE_KEY), ureq.getUserSession());
......
...@@ -20,16 +20,12 @@ ...@@ -20,16 +20,12 @@
package org.olat.course.nodes.opencast.ui; package org.olat.course.nodes.opencast.ui;
import org.olat.core.gui.UserRequest; import org.olat.core.gui.UserRequest;
import org.olat.core.gui.components.form.flexible.FormItem; import org.olat.core.gui.components.Component;
import org.olat.core.gui.components.form.flexible.FormItemContainer; import org.olat.core.gui.components.htmlheader.jscss.JSAndCSSComponent;
import org.olat.core.gui.components.form.flexible.elements.FormLink; import org.olat.core.gui.components.velocity.VelocityContainer;
import org.olat.core.gui.components.form.flexible.impl.FormBasicController; import org.olat.core.gui.control.Event;
import org.olat.core.gui.components.form.flexible.impl.FormEvent;
import org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer;
import org.olat.core.gui.components.link.Link;
import org.olat.core.gui.control.Controller;
import org.olat.core.gui.control.WindowControl; import org.olat.core.gui.control.WindowControl;
import org.olat.core.gui.control.winmgr.CommandFactory; import org.olat.core.gui.control.controller.BasicController;
import org.olat.core.util.Formatter; import org.olat.core.util.Formatter;
import org.olat.course.nodes.OpencastCourseNode; import org.olat.course.nodes.OpencastCourseNode;
import org.olat.course.run.userview.UserCourseEnvironment; import org.olat.course.run.userview.UserCourseEnvironment;
...@@ -42,15 +38,12 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -42,15 +38,12 @@ import org.springframework.beans.factory.annotation.Autowired;
/** /**
* *
* Initial date: 12 Aug 2020<br> * Initial date: 13 Aug 2020<br>
* @author uhensler, urs.hensler@frentix.com, http://www.frentix.com * @author uhensler, urs.hensler@frentix.com, http://www.frentix.com
* *
*/ */
public class OpencastDisplayController extends FormBasicController { public class OpencastRunController extends BasicController {
private FormLink seriesButton;
private FormLink eventButton;
private final ModuleConfiguration config; private final ModuleConfiguration config;
private final String roles; private final String roles;
...@@ -59,16 +52,50 @@ public class OpencastDisplayController extends FormBasicController { ...@@ -59,16 +52,50 @@ public class OpencastDisplayController extends FormBasicController {
@Autowired @Autowired
private OpencastService opencastService; private OpencastService opencastService;
public OpencastDisplayController(UserRequest ureq, WindowControl wControl, OpencastCourseNode courseNode, public OpencastRunController(UserRequest ureq, WindowControl wControl, OpencastCourseNode courseNode, UserCourseEnvironment userCourseEnv) {
UserCourseEnvironment userCourseEnv) { super(ureq, wControl);
super(ureq, wControl, "display");
config = courseNode.getModuleConfiguration(); config = courseNode.getModuleConfiguration();
roles = initRoles(userCourseEnv); roles = initRoles(userCourseEnv);
initForm(ureq); VelocityContainer mainVC = createVelocityContainer("run");
doStartImmediately(ureq);
String url = null;
String title = config.getStringValue(OpencastCourseNode.CONFIG_TITLE);
mainVC.contextPut("title", title);
if (config.has(OpencastCourseNode.CONFIG_SERIES_IDENTIFIER)) {
String seriesIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_SERIES_IDENTIFIER);
OpencastSeries series = opencastService.getSeries(seriesIdentifier);
if (series != null) {
mainVC.contextPut("title", series.getTitle());
url = opencastService.getLtiSeriesMapperUrl(ureq.getUserSession(), series, roles);
} else {
mainVC.contextPut("error", translate("error.series.not.found", new String[] {title}));
}
} else {
String eventIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_EVENT_IDENTIFIER);
OpencastEvent event = opencastService.getEvent(eventIdentifier);
if (event != null) {
mainVC.contextPut("title", event.getTitle());
String start = Formatter.getInstance(getLocale()).formatDateAndTime(event.getStart());
mainVC.contextPut("start", start);
mainVC.contextPut("creator", event.getCreator());
url = opencastService.getLtiEventMapperUrl(ureq.getUserSession(), event.getIdentifier(), roles);
} else {
mainVC.contextPut("error", translate("error.event.not.found", new String[] {title}));
}
}
if (url != null) {
mainVC.contextPut("mapperUri", url + "/");
JSAndCSSComponent js = new JSAndCSSComponent("js", new String[] { "js/openolat/iFrameResizerHelper.js" }, null);
mainVC.put("js", js);
}
putInitialPanel(mainVC);
} }
private String initRoles(UserCourseEnvironment userCourseEnv) { private String initRoles(UserCourseEnvironment userCourseEnv) {
if (userCourseEnv.isAdmin()) { if (userCourseEnv.isAdmin()) {
return opencastModule.getRolesAdmin(); return opencastModule.getRolesAdmin();
...@@ -78,80 +105,9 @@ public class OpencastDisplayController extends FormBasicController { ...@@ -78,80 +105,9 @@ public class OpencastDisplayController extends FormBasicController {
return opencastModule.getRolesParticipant(); return opencastModule.getRolesParticipant();
} }
@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
if (formLayout instanceof FormLayoutContainer) {
FormLayoutContainer layoutCont = (FormLayoutContainer)formLayout;
String title = config.getStringValue(OpencastCourseNode.CONFIG_TITLE);
layoutCont.contextPut("title", title);
if (config.has(OpencastCourseNode.CONFIG_SERIES_IDENTIFIER)) {
String seriesIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_SERIES_IDENTIFIER);
OpencastSeries series = opencastService.getSeries(seriesIdentifier);
if (series != null) {
layoutCont.contextPut("title", series.getTitle());
seriesButton = uifactory.addFormLink("start.series", formLayout, Link.BUTTON_LARGE);
seriesButton.setNewWindow(true, true);
seriesButton.setUserObject(series);
} else {
layoutCont.contextPut("error", translate("error.series.not.found", new String[] {title}));
}
} else {
String eventIdentifier = config.getStringValue(OpencastCourseNode.CONFIG_EVENT_IDENTIFIER);
OpencastEvent event = opencastService.getEvent(eventIdentifier);
if (event != null) {
layoutCont.contextPut("title", event.getTitle());
String start = Formatter.getInstance(getLocale()).formatDateAndTime(event.getStart());
layoutCont.contextPut("start", start);
layoutCont.contextPut("creator", event.getCreator());
eventButton = uifactory.addFormLink("start.event", formLayout, Link.BUTTON_LARGE);
eventButton.setNewWindow(true, true);
eventButton.setUserObject(event);
} else {
layoutCont.contextPut("error", translate("error.event.not.found", new String[] {title}));
}
}
}
}
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == seriesButton) {
OpencastSeries opencastSeries = (OpencastSeries)seriesButton.getUserObject();
doStartSeries(ureq, opencastSeries);
} else if (source == eventButton) {
OpencastEvent opencastEvent = (OpencastEvent)eventButton.getUserObject();
doStartEvent(ureq, opencastEvent);
}
super.formInnerEvent(ureq, source, event);
}
private void doStartImmediately(UserRequest ureq) {
if (opencastModule.isStartImmediately()) {
if (seriesButton != null) {
OpencastSeries opencastSeries = (OpencastSeries)seriesButton.getUserObject();
doStartSeries(ureq, opencastSeries);
} else if (eventButton != null) {
OpencastEvent opencastEvent = (OpencastEvent)eventButton.getUserObject();
doStartEvent(ureq, opencastEvent);
}
}
}
private void doStartSeries(UserRequest ureq, OpencastSeries opencastSeries) {
String url = opencastService.getLtiSeriesMapperUrl(ureq.getUserSession(), opencastSeries, roles);
getWindowControl().getWindowBackOffice().sendCommandTo(CommandFactory.createNewWindowRedirectTo(url));
}
private void doStartEvent(UserRequest ureq, OpencastEvent opencastEvent) {
String url = opencastService.getLtiEventMapperUrl(ureq.getUserSession(), opencastEvent.getIdentifier(), roles);
getWindowControl().getWindowBackOffice().sendCommandTo(CommandFactory.createNewWindowRedirectTo(url));
}
@Override @Override
protected void formOK(UserRequest ureq) { protected void event(UserRequest ureq, Component source, Event event) {
// //
} }
......
<div>
<h3>$r.escapeHtml($title)</h3>
#if($r.isNotEmpty($errorMessage))
<div class="o_error">$errorMessage</div>
#end
#if($r.isNotNull($start))
<div><i class="o_icon o_icon-fw o_icon_lifecycle_date"> </i> $start</div>
#end
#if($r.isNotEmpty($creator))
<div><i class="o_icon o_icon-fw o_icon_user"> </i> $r.escapeHtml($creator)</div>
#end
<div class="o_button_group">
#if($r.available("start.series") && $r.visible("start.series"))
$r.render("start.series")
#end
#if($r.available("start.event") && $r.visible("start.event"))
$r.render("start.event")
#end
</div>
</div>
\ No newline at end of file
<div>
<h3>$r.escapeHtml($title)</h3>
#if($r.isNotEmpty($errorMessage))
<div class="o_error">$errorMessage</div>
#end
#if($r.isNotNull($start))
<div><i class="o_icon o_icon-fw o_icon_lifecycle_date"> </i> $start</div>
#end
#if($r.isNotEmpty($creator))
<div><i class="o_icon o_icon-fw o_icon_user"> </i> $r.escapeHtml($creator)</div>
#end
</div>
#if($r.isNotNull($mapperUri))
<div class="o_iframedisplay">
<iframe id="OpencastIFrame" src="${mapperUri}?$r.uuid" marginwidth="0" marginheight="0" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
</div>
<script>
/* <![CDATA[ */
jQuery(function() {b_resizeIframeToMainMaxHeight("OpencastIFrame");});
registerIFrameAndObserve("OpencastIFrame", false);
/* ]]> */
</script>
#end
\ No newline at end of file
...@@ -54,7 +54,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff ...@@ -54,7 +54,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff
private static final String LTI_SECRET = "lti.secret"; private static final String LTI_SECRET = "lti.secret";
private static final String BBB_ENABLED = "opencast.bbb.enabled"; private static final String BBB_ENABLED = "opencast.bbb.enabled";
private static final String COURSE_NODE_ENABLED = "opencast.course.node.enabled"; private static final String COURSE_NODE_ENABLED = "opencast.course.node.enabled";
private static final String START_IMMEDIATELY = "start.immediately";
private static final String ROLES_ADMIN = "roles.admin"; private static final String ROLES_ADMIN = "roles.admin";
private static final String ROLES_COACH = "roles.coach"; private static final String ROLES_COACH = "roles.coach";
private static final String ROLES_PARTICIPANT = "roles.participant"; private static final String ROLES_PARTICIPANT = "roles.participant";
...@@ -81,8 +80,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff ...@@ -81,8 +80,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff
private boolean bigBlueButtonEnabled; private boolean bigBlueButtonEnabled;
@Value("${opencast.course.node.enabled}") @Value("${opencast.course.node.enabled}")
private boolean courseNodeEnabled; private boolean courseNodeEnabled;
@Value("${opencast.course.node.start.immediately}")
private boolean startImmediately;
@Value("${opencast.course.node.roles.admin}") @Value("${opencast.course.node.roles.admin}")
private String rolesAdmin; private String rolesAdmin;
@Value("${opencast.course.node.roles.coach}") @Value("${opencast.course.node.roles.coach}")
...@@ -128,11 +125,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff ...@@ -128,11 +125,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff
courseNodeEnabled = "true".equals(courseNodeEnabledObj); courseNodeEnabled = "true".equals(courseNodeEnabledObj);
} }
String startImmediatelyObj = getStringPropertyValue(START_IMMEDIATELY, true);
if(StringHelper.containsNonWhitespace(startImmediatelyObj)) {
startImmediately = "true".equals(startImmediatelyObj);
}
rolesAdmin = getStringPropertyValue(ROLES_ADMIN, rolesAdmin); rolesAdmin = getStringPropertyValue(ROLES_ADMIN, rolesAdmin);
rolesCoach = getStringPropertyValue(ROLES_COACH, rolesCoach); rolesCoach = getStringPropertyValue(ROLES_COACH, rolesCoach);
rolesParticipant = getStringPropertyValue(ROLES_PARTICIPANT, rolesParticipant); rolesParticipant = getStringPropertyValue(ROLES_PARTICIPANT, rolesParticipant);
...@@ -272,15 +264,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff ...@@ -272,15 +264,6 @@ public class OpencastModule extends AbstractSpringModule implements ConfigOnOff
setStringProperty(COURSE_NODE_ENABLED, Boolean.toString(courseNodeEnabled), true); setStringProperty(COURSE_NODE_ENABLED, Boolean.toString(courseNodeEnabled), true);
} }
public boolean isStartImmediately() {
return startImmediately;
}
public void setStartImmediately(boolean startImmediately) {
this.startImmediately = startImmediately;
setStringProperty(START_IMMEDIATELY, Boolean.toString(startImmediately), true);
}
public String getRolesAdmin() { public String getRolesAdmin() {
return rolesAdmin; return rolesAdmin;
} }
......
...@@ -71,7 +71,6 @@ public class OpencastAdminController extends FormBasicController { ...@@ -71,7 +71,6 @@ public class OpencastAdminController extends FormBasicController {
private MultipleSelectionElement courseNodeEnabledEl; private MultipleSelectionElement courseNodeEnabledEl;
private SingleSelection authDelegateTypeEl; private SingleSelection authDelegateTypeEl;
private TextElement authDelegateRolesEl; private TextElement authDelegateRolesEl;
private MultipleSelectionElement startImmediatelyEl;
private MultipleSelectionElement rolesAdminEl; private MultipleSelectionElement rolesAdminEl;
private MultipleSelectionElement rolesCoachEl; private MultipleSelectionElement rolesCoachEl;
private MultipleSelectionElement rolesParticipantEl; private MultipleSelectionElement rolesParticipantEl;
...@@ -146,7 +145,6 @@ public class OpencastAdminController extends FormBasicController { ...@@ -146,7 +145,6 @@ public class OpencastAdminController extends FormBasicController {
authDelegateTypeEl.addActionListener(FormEvent.ONCHANGE); authDelegateTypeEl.addActionListener(FormEvent.ONCHANGE);
authDelegateRolesEl = uifactory.addTextElement("admin.auth.delegate.roles", 128, null, formLayout); authDelegateRolesEl = uifactory.addTextElement("admin.auth.delegate.roles", 128, null, formLayout);
authDelegateRolesEl.setMandatory(true); authDelegateRolesEl.setMandatory(true);
startImmediatelyEl = uifactory.addCheckboxesHorizontal("admin.start.immediately", formLayout, ENABLED_KEYS, enableValues);
String[] ltiRolesValues = new String[]{ String[] ltiRolesValues = new String[]{
translate("roles.lti.learner"), translate("roles.lti.learner"),
...@@ -178,7 +176,6 @@ public class OpencastAdminController extends FormBasicController { ...@@ -178,7 +176,6 @@ public class OpencastAdminController extends FormBasicController {
courseNodeEnabledEl.select(ENABLED_KEYS[0], opencastModule.isCourseNodeEnabledRaw()); courseNodeEnabledEl.select(ENABLED_KEYS[0], opencastModule.isCourseNodeEnabledRaw());
authDelegateTypeEl.select(opencastModule.getAuthDelegateType().name(), true); authDelegateTypeEl.select(opencastModule.getAuthDelegateType().name(), true);
authDelegateRolesEl.setValue(opencastModule.getAuthDelegateRoles()); authDelegateRolesEl.setValue(opencastModule.getAuthDelegateRoles());
startImmediatelyEl.select(ENABLED_KEYS[0], opencastModule.isStartImmediately());
udpateRoles(rolesAdminEl, opencastModule.getRolesAdmin()); udpateRoles(rolesAdminEl, opencastModule.getRolesAdmin());
udpateRoles(rolesCoachEl, opencastModule.getRolesCoach()); udpateRoles(rolesCoachEl, opencastModule.getRolesCoach());
udpateRoles(rolesParticipantEl, opencastModule.getRolesParticipant()); udpateRoles(rolesParticipantEl, opencastModule.getRolesParticipant());
...@@ -196,7 +193,6 @@ public class OpencastAdminController extends FormBasicController { ...@@ -196,7 +193,6 @@ public class OpencastAdminController extends FormBasicController {
authDelegateTypeEl.setVisible(enabled); authDelegateTypeEl.setVisible(enabled);
boolean authDelegateRoles = authDelegateTypeEl.isOneSelected() && Type.Roles == Type.valueOf(authDelegateTypeEl.getSelectedValue()); boolean authDelegateRoles = authDelegateTypeEl.isOneSelected() && Type.Roles == Type.valueOf(authDelegateTypeEl.getSelectedValue());
authDelegateRolesEl.setVisible(enabled && authDelegateRoles); authDelegateRolesEl.setVisible(enabled && authDelegateRoles);
startImmediatelyEl.setVisible(enabled);
rolesAdminEl.setVisible(enabled); rolesAdminEl.setVisible(enabled);
rolesCoachEl.setVisible(enabled); rolesCoachEl.setVisible(enabled);
rolesParticipantEl.setVisible(enabled); rolesParticipantEl.setVisible(enabled);
...@@ -285,7 +281,7 @@ public class OpencastAdminController extends FormBasicController { ...@@ -285,7 +281,7 @@ public class OpencastAdminController extends FormBasicController {
opencastModule.setCourseNodeEnabled(cnEnabled); opencastModule.setCourseNodeEnabled(cnEnabled);
Type authDelegateType = authDelegateTypeEl.isOneSelected() Type authDelegateType = authDelegateTypeEl.isOneSelected()
? Type.valueOf(authDelegateTypeEl.getSelectedValue()) ? Type.valueOf(authDelegateTypeEl.getSelectedKey())
: Type.User; : Type.User;
opencastModule.setAuthDelegateType(authDelegateType); opencastModule.setAuthDelegateType(authDelegateType);
...@@ -294,9 +290,6 @@ public class OpencastAdminController extends FormBasicController { ...@@ -294,9 +290,6 @@ public class OpencastAdminController extends FormBasicController {
: null; : null;
opencastModule.setAuthDelegateRoles(authDelegateRoles); opencastModule.setAuthDelegateRoles(authDelegateRoles);
boolean startImmediately = startImmediatelyEl.isAtLeastSelected(1);
opencastModule.setStartImmediately(startImmediately);
String rolesAdmin = getRoles(rolesAdminEl); String rolesAdmin = getRoles(rolesAdminEl);
opencastModule.setRolesAdmin(rolesAdmin); opencastModule.setRolesAdmin(rolesAdmin);
......
...@@ -20,7 +20,6 @@ admin.lti.sign.url.example=http://localhost:8080/lti ...@@ -20,7 +20,6 @@ admin.lti.sign.url.example=http://localhost:8080/lti
admin.lti.sign.url.help=In einige Opencast Installationen wird f\u00fcr die Validierung der LTI Signatur nicht die LTI URL verwendet. Sie erhalten dann beim Aufruf eines Inhaltes aus Opencast die Felermeldung "Invalid signature for signature method HMAC-SHA1". Um diesen Fehler k\u00f6nnen Sie hier eine alternative URL f\u00fcr die Validierung der Signatur angeben. admin.lti.sign.url.help=In einige Opencast Installationen wird f\u00fcr die Validierung der LTI Signatur nicht die LTI URL verwendet. Sie erhalten dann beim Aufruf eines Inhaltes aus Opencast die Felermeldung "Invalid signature for signature method HMAC-SHA1". Um diesen Fehler k\u00f6nnen Sie hier eine alternative URL f\u00fcr die Validierung der Signatur angeben.
admin.menu.title=Opencast admin.menu.title=Opencast
admin.menu.title.alt=Opencast admin.menu.title.alt=Opencast
admin.start.immediately=Unverz\u00fcglich starten
admin.title=Konfiguration admin.title=Konfiguration
check.api.connection.ok=Die Verbindung konnte erfolgreich hergestellt werden! check.api.connection.ok=Die Verbindung konnte erfolgreich hergestellt werden!
check.api.connection.nok=Die Verbindung konnte nicht hergestellt werden! check.api.connection.nok=Die Verbindung konnte nicht hergestellt werden!
\ No newline at end of file
...@@ -20,7 +20,6 @@ admin.lti.sign.url.example=http://localhost:8080/lti ...@@ -20,7 +20,6 @@ admin.lti.sign.url.example=http://localhost:8080/lti
admin.lti.sign.url.help=In some Opencast installations the LTI URL is not used for the validation of the LTI signature. In this case, you will receive the field message "Invalid signature for signature method HMAC-SHA1" when calling content from Opencast. To avoid this error, you can enter an alternative URL for the validation of the signature here. admin.lti.sign.url.help=In some Opencast installations the LTI URL is not used for the validation of the LTI signature. In this case, you will receive the field message "Invalid signature for signature method HMAC-SHA1" when calling content from Opencast. To avoid this error, you can enter an alternative URL for the validation of the signature here.
admin.menu.title=Opencast admin.menu.title=Opencast
admin.menu.title.alt=Opencast admin.menu.title.alt=Opencast
admin.start.immediately=Start immediately
admin.title=Configuration admin.title=Configuration
check.api.connection.ok=The connection was successfully established. check.api.connection.ok=The connection was successfully established.
check.api.connection.nok=The connection could not be established! check.api.connection.nok=The connection could not be established!
\ No newline at end of file
...@@ -1819,7 +1819,6 @@ opencast.course.node.enabled=false ...@@ -1819,7 +1819,6 @@ opencast.course.node.enabled=false
opencast.course.node.auth.delegate=User opencast.course.node.auth.delegate=User
opencast.course.node.auth.delegate.values=None,User,Roles opencast.course.node.auth.delegate.values=None,User,Roles
opencast.course.node.auth.delegate.roles= opencast.course.node.auth.delegate.roles=
opencast.course.node.start.immediately=true
opencast.course.node.roles.values=Instructor,Administrator,TeachingAssistant,ContentDeveloper,Mentor,Learner opencast.course.node.roles.values=Instructor,Administrator,TeachingAssistant,ContentDeveloper,Mentor,Learner
opencast.course.node.roles.admin=Instructor,Administrator,TeachingAssistant,ContentDeveloper,Mentor opencast.course.node.roles.admin=Instructor,Administrator,TeachingAssistant,ContentDeveloper,Mentor
opencast.course.node.roles.coach=Instructor,TeachingAssistant,Mentor opencast.course.node.roles.coach=Instructor,TeachingAssistant,Mentor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment