org.sonar.api.database.daos
Class RulesDao
java.lang.Object
org.sonar.api.database.daos.BaseDao
org.sonar.api.database.daos.RulesDao
public class RulesDao
- extends BaseDao
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RulesDao
public RulesDao(DatabaseSession session)
getRules
public List<Rule> getRules()
getRulesByPlugin
public List<Rule> getRulesByPlugin(String pluginKey)
getRulesByCategory
public List<Rule> getRulesByCategory(RulesCategory categ)
getRuleByKey
public Rule getRuleByKey(String pluginKey,
String ruleKey)
countRules
public Long countRules(List<String> plugins,
String categoryName)
getCategories
public List<RulesCategory> getCategories()
getCategory
public RulesCategory getCategory(String key)
getRuleParams
public List<RuleParam> getRuleParams()
getRuleParam
public RuleParam getRuleParam(Rule rule,
String paramKey)
addActiveRulesToProfile
public void addActiveRulesToProfile(List<ActiveRule> activeRules,
int profileId,
String pluginKey)
deleteActiveRuleParameters
public void deleteActiveRuleParameters(RuleParam ruleParam)
getViolations
public List<RuleFailureModel> getViolations(Snapshot snapshot)
synchronizeRuleOfActiveRule
public void synchronizeRuleOfActiveRule(ActiveRule activeRule,
String pluginKey)
isRuleParamEqual
public boolean isRuleParamEqual(RuleParam ruleParam,
RuleParam ruleParamFromDatabase,
String ruleKey,
String pluginKey)
getProfileById
public RulesProfile getProfileById(int profileId)
Copyright © 2009 SonarSource SA. All Rights Reserved.