use of org.olat.modules.reminder.RepositoryEntryRuleSPI in project OpenOLAT by OpenOLAT.
the class ReminderRuleEngine method evaluateRepositoryEntryRule.
/**
* @param reminder
*/
protected boolean evaluateRepositoryEntryRule(RepositoryEntry entry, List<ReminderRule> ruleList) {
boolean allOk = true;
for (Iterator<ReminderRule> ruleIt = ruleList.iterator(); ruleIt.hasNext(); ) {
ReminderRule rule = ruleIt.next();
RuleSPI ruleSpi = reminderModule.getRuleSPIByType(rule.getType());
if (ruleSpi instanceof RepositoryEntryRuleSPI) {
allOk &= ((RepositoryEntryRuleSPI) ruleSpi).evaluate(entry, rule);
ruleIt.remove();
}
}
return allOk;
}
use of org.olat.modules.reminder.RepositoryEntryRuleSPI in project openolat by klemens.
the class ReminderRuleEngine method evaluateRepositoryEntryRule.
/**
* @param reminder
*/
protected boolean evaluateRepositoryEntryRule(RepositoryEntry entry, List<ReminderRule> ruleList) {
boolean allOk = true;
for (Iterator<ReminderRule> ruleIt = ruleList.iterator(); ruleIt.hasNext(); ) {
ReminderRule rule = ruleIt.next();
RuleSPI ruleSpi = reminderModule.getRuleSPIByType(rule.getType());
if (ruleSpi instanceof RepositoryEntryRuleSPI) {
allOk &= ((RepositoryEntryRuleSPI) ruleSpi).evaluate(entry, rule);
ruleIt.remove();
}
}
return allOk;
}
Aggregations