use of org.olat.modules.reminder.ReminderRule in project openolat by klemens.
the class ReminderRuleEngineTest method getRepositoryEntryLifecycleRuleValidFromRule.
private List<ReminderRule> getRepositoryEntryLifecycleRuleValidFromRule(int amount, LaunchUnit unit) {
ReminderRuleImpl rule = new ReminderRuleImpl();
rule.setType(RepositoryEntryLifecycleAfterValidFromRuleSPI.class.getSimpleName());
rule.setOperator(">");
rule.setRightOperand(Integer.toString(amount));
rule.setRightUnit(unit.name());
List<ReminderRule> rules = new ArrayList<>(1);
rules.add(rule);
return rules;
}
use of org.olat.modules.reminder.ReminderRule in project openolat by klemens.
the class ReminderRuleEngineTest method getScoreRules.
private List<ReminderRule> getScoreRules(String operator, float value, String nodeIdent) {
ReminderRuleImpl rule = new ReminderRuleImpl();
rule.setType(ScoreRuleSPI.class.getSimpleName());
rule.setLeftOperand(nodeIdent);
rule.setOperator(operator);
rule.setRightOperand(Float.toString(value));
List<ReminderRule> rules = new ArrayList<>(1);
rules.add(rule);
return rules;
}
use of org.olat.modules.reminder.ReminderRule in project openolat by klemens.
the class ReminderRuleEngineTest method getAttemptsRules.
private List<ReminderRule> getAttemptsRules(String operator, int value, String nodeIdent) {
ReminderRuleImpl rule = new ReminderRuleImpl();
rule.setType(AttemptsRuleSPI.class.getSimpleName());
rule.setLeftOperand(nodeIdent);
rule.setOperator(operator);
rule.setRightOperand(Integer.toString(value));
List<ReminderRule> rules = new ArrayList<>(1);
rules.add(rule);
return rules;
}
use of org.olat.modules.reminder.ReminderRule in project openolat by klemens.
the class ReminderRuleEngineTest method getRepositoryEntryLifecycleRuleValidToRule.
private List<ReminderRule> getRepositoryEntryLifecycleRuleValidToRule(int amount, LaunchUnit unit) {
ReminderRuleImpl rule = new ReminderRuleImpl();
rule.setType(RepositoryEntryLifecycleAfterValidToRuleSPI.class.getSimpleName());
rule.setOperator(">");
rule.setRightOperand(Integer.toString(amount));
rule.setRightUnit(unit.name());
List<ReminderRule> rules = new ArrayList<>(1);
rules.add(rule);
return rules;
}
use of org.olat.modules.reminder.ReminderRule in project openolat by klemens.
the class ReminderRuleEngineTest method getCourseEnrollmentDateRules.
private List<ReminderRule> getCourseEnrollmentDateRules(int amount, LaunchUnit unit) {
ReminderRuleImpl rule = new ReminderRuleImpl();
rule.setType(CourseEnrollmentDateRuleSPI.class.getSimpleName());
rule.setOperator(">");
rule.setRightOperand(Integer.toString(amount));
rule.setRightUnit(unit.name());
List<ReminderRule> rules = new ArrayList<>(1);
rules.add(rule);
return rules;
}
Aggregations