Skip to content
Snippets Groups Projects
Commit 5ed7a19b authored by uhensler's avatar uhensler
Browse files

OO-4241: Enable course element "Adobe Connect" in learning path courses

parent b3a050c5
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ public class AdobeConnectCourseNode extends AbstractAccessableCourseNode {
private static final long serialVersionUID = 7965344505304490859L;
private static final Logger log = Tracing.createLoggerFor(AdobeConnectCourseNode.class);
private static final String TYPE = "adobeconnect";
public static final String TYPE = "adobeconnect";
// configuration
public static final String CONF_VC_CONFIGURATION = "vc_configuration";
......
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a>
* <p>
* Unless required by applicable law or agreed to in writing,<br>
* software distributed under the License is distributed on an "AS IS" BASIS, <br>
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br>
* See the License for the specific language governing permissions and <br>
* limitations under the License.
* <p>
* Initial code contributed and copyrighted by<br>
* frentix GmbH, http://www.frentix.com
* <p>
*/
package org.olat.course.nodes.adobeconnect;
import org.olat.course.learningpath.LearningPathOnlyAssessmentHandler;
import org.olat.course.nodes.AdobeConnectCourseNode;
import org.springframework.stereotype.Service;
/**
*
* Initial date: 21.02.2020<br>
* @author uhensler, urs.hensler@frentix.com, http://www.frentix.com
*
*/
@Service
public class AdobeConnectAssessmentHandler extends LearningPathOnlyAssessmentHandler {
@Override
public String acceptCourseNodeType() {
return AdobeConnectCourseNode.TYPE;
}
}
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a>
* <p>
* Unless required by applicable law or agreed to in writing,<br>
* software distributed under the License is distributed on an "AS IS" BASIS, <br>
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br>
* See the License for the specific language governing permissions and <br>
* limitations under the License.
* <p>
* Initial code contributed and copyrighted by<br>
* frentix GmbH, http://www.frentix.com
* <p>
*/
package org.olat.course.nodes.adobeconnect;
import org.olat.core.gui.UserRequest;
import org.olat.core.gui.control.Controller;
import org.olat.core.gui.control.WindowControl;
import org.olat.course.learningpath.LearningPathConfigs;
import org.olat.course.learningpath.LearningPathEditConfigs;
import org.olat.course.learningpath.LearningPathNodeHandler;
import org.olat.course.learningpath.model.ModuleLearningPathConfigs;
import org.olat.course.learningpath.ui.LearningPathNodeConfigController;
import org.olat.course.nodes.AdobeConnectCourseNode;
import org.olat.course.nodes.CourseNode;
import org.olat.repository.RepositoryEntry;
import org.springframework.stereotype.Service;
/**
*
* Initial date: 21.02.2020<br>
* @author uhensler, urs.hensler@frentix.com, http://www.frentix.com
*
*/
@Service
public class AdobeConnectLearningPathNodeHandler implements LearningPathNodeHandler {
private static final LearningPathEditConfigs EDIT_CONFIGS = LearningPathEditConfigs.builder()
.enableNodeVisited()
.enableConfirmed()
.build();
@Override
public String acceptCourseNodeType() {
return AdobeConnectCourseNode.TYPE;
}
@Override
public boolean isSupported() {
return true;
}
@Override
public LearningPathConfigs getConfigs(CourseNode courseNode) {
return new ModuleLearningPathConfigs(courseNode.getModuleConfiguration(), true);
}
@Override
public Controller createConfigEditController(UserRequest ureq, WindowControl wControl, RepositoryEntry courseEntry,
CourseNode courseNode) {
return new LearningPathNodeConfigController(ureq, wControl, courseEntry, courseNode, EDIT_CONFIGS);
}
@Override
public LearningPathEditConfigs getEditConfigs() {
return EDIT_CONFIGS;
}
@Override
public void onMigrated(CourseNode courseNode) {
//
}
}
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