use of org.olat.modules.reminder.model.ReminderRuleImpl 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.model.ReminderRuleImpl 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.model.ReminderRuleImpl 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;
}
use of org.olat.modules.reminder.model.ReminderRuleImpl in project openolat by klemens.
the class ReminderRuleEngineTest method getInitialLaunchRules.
private List<ReminderRule> getInitialLaunchRules(int amount, LaunchUnit unit) {
ReminderRuleImpl rule = new ReminderRuleImpl();
rule.setType(InitialCourseLaunchRuleSPI.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.model.ReminderRuleImpl in project openolat by klemens.
the class ReminderRuleEngineTest method getRecentLaunchRules.
private List<ReminderRule> getRecentLaunchRules(int amount, LaunchUnit unit) {
ReminderRuleImpl rule = new ReminderRuleImpl();
rule.setType(RecentCourseLaunchRuleSPI.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