Skip to content
Snippets Groups Projects
Commit 10134369 authored by srosse's avatar srosse
Browse files

no-jira: enhance compatibility of the import for course from other vendors

parent b3fa23a3
No related branches found
No related tags found
No related merge requests found
/**
* <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.condition.additionalconditions;
import org.olat.course.condition.Condition;
import org.olat.course.nodes.GenericCourseNode;
/**
* Only a placeholder to import courses from other vendors
*
* @author srosse, stephane.rosse@frentix.com, http://www.frentix.com
*/
public class PasswordCondition extends Condition {
private static final long serialVersionUID = -2311016997086309298L;
private Long courseId;
private GenericCourseNode node;
public Long getCourseId() {
return courseId;
}
public void setCourseId(Long courseId) {
this.courseId = courseId;
}
public GenericCourseNode getNode() {
return node;
}
public void setNode(GenericCourseNode node) {
this.node = node;
}
}
......@@ -70,6 +70,7 @@ public abstract class GenericCourseNode extends GenericNode implements CourseNod
private String noAccessExplanation;
private Condition preConditionVisibility;
private Condition preConditionAccess;
private List<Condition> additionalConditions;
protected transient StatusDescription[] oneClickStatusCache = null;
/**
......@@ -330,6 +331,18 @@ public abstract class GenericCourseNode extends GenericNode implements CourseNod
preConditionAccess.setConditionId("accessability");
return preConditionAccess;
}
/**
* Only a placeholder to accept courses from others OLAT vendors
* @return
*/
public List<Condition> getAdditionalConditions() {
return additionalConditions;
}
public void setAdditionalConditions(List<Condition> additionalConditions) {
this.additionalConditions = additionalConditions;
}
/**
* Generic interface implementation. May be overriden by specific node's
......
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