/** Rule was activated */ public void activated(int profileId, int activeRuleId, String userName) { ActiveRule activeRule = getSession().getEntity(ActiveRule.class, activeRuleId); RulesProfile profile = getSession().getEntity(RulesProfile.class, profileId); ruleEnabled(profile, activeRule, userName); // Notify child profiles activatedOrChanged(profileId, activeRuleId, userName); }
/** Rule severity was changed */ public void ruleSeverityChanged( int profileId, int activeRuleId, RulePriority oldSeverity, RulePriority newSeverity, String userName) { ActiveRule activeRule = getSession().getEntity(ActiveRule.class, activeRuleId); RulesProfile profile = getSession().getEntity(RulesProfile.class, profileId); ruleSeverityChanged(profile, activeRule.getRule(), oldSeverity, newSeverity, userName); // Notify child profiles activatedOrChanged(profileId, activeRuleId, userName); }
/** Rule param was changed */ public void ruleParamChanged( int profileId, int activeRuleId, String paramKey, String oldValue, String newValue, String userName) { ActiveRule activeRule = getSession().getEntity(ActiveRule.class, activeRuleId); RulesProfile profile = getSession().getEntity(RulesProfile.class, profileId); ruleParamChanged(profile, activeRule.getRule(), paramKey, oldValue, newValue, userName); // Notify child profiles activatedOrChanged(profileId, activeRuleId, userName); }