Skip to content
Snippets Groups Projects
Commit 8547ba8b authored by DHikade's avatar DHikade Committed by Tom Käsler
Browse files

Added empty function

parent 970fcd84
No related merge requests found
......@@ -311,4 +311,13 @@ public class Session implements Serializable {
Session other = (Session) obj;
return this.keyword.equals(other.keyword);
}
// Sorting
public boolean getSortLectureQuestions(){
return false;
}
// Sorting
public boolean getSortPreparationQuestions(){
return false;
}
}
......@@ -118,10 +118,12 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis
// if SortIndex false, list is sorted so new question is appended to sorted list with (highest sequenceNr)++
if ("lecture".equals(question.getQuestionVariant())) {
if(session.getSortLectureQuestions()) {
//Take a look at entities/Session.java
//question.setSequenceNr();
}
} else if ("preparation".equals(question.getQuestionVariant())) {
if(session.getSortPreparationQuestions()) {
//Take a look at entities/Session.java
//question.setSequenceNr();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment