org.sonar.core.rules
Class RulesRepositorySynchronizer

java.lang.Object
  extended by org.sonar.core.rules.RulesRepositorySynchronizer
All Implemented Interfaces:
Synchronizer

public class RulesRepositorySynchronizer
extends java.lang.Object
implements Synchronizer


Constructor Summary
RulesRepositorySynchronizer(DaoFacade dao, Plugins plugins, RulesRepository[] repositories, ExtensionsFinder extensionsFinder)
           
 
Method Summary
protected  void addNewRule(java.lang.String pluginKey, Rule rule)
           
protected  RulesCategory getValidCategory(Rule rule, java.lang.String plugin)
           
protected  void registerRuleExtensions(java.lang.String pluginKey, RulesRepository rulesRepository)
           
 void registerRules(java.lang.String pluginKey, java.util.List<Rule> rules)
           
 void synchronize()
           
protected  void updateExistingRule(java.lang.String pluginKey, Rule rule, Rule existingRule)
           
protected  void updateRuleFields(java.lang.String pluginKey, Rule newRule, Rule existingRule)
           
protected  boolean updateRuleParameterFields(RuleParam newRuleParam, RuleParam existingRuleParam)
           
protected  void updateRuleParameters(Rule newRule, Rule existingRule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesRepositorySynchronizer

public RulesRepositorySynchronizer(DaoFacade dao,
                                   Plugins plugins,
                                   RulesRepository[] repositories,
                                   ExtensionsFinder extensionsFinder)
Method Detail

synchronize

public void synchronize()
Specified by:
synchronize in interface Synchronizer

registerRules

public void registerRules(java.lang.String pluginKey,
                          java.util.List<Rule> rules)

addNewRule

protected void addNewRule(java.lang.String pluginKey,
                          Rule rule)

updateExistingRule

protected void updateExistingRule(java.lang.String pluginKey,
                                  Rule rule,
                                  Rule existingRule)

updateRuleFields

protected void updateRuleFields(java.lang.String pluginKey,
                                Rule newRule,
                                Rule existingRule)

updateRuleParameters

protected void updateRuleParameters(Rule newRule,
                                    Rule existingRule)

updateRuleParameterFields

protected boolean updateRuleParameterFields(RuleParam newRuleParam,
                                            RuleParam existingRuleParam)

registerRuleExtensions

protected void registerRuleExtensions(java.lang.String pluginKey,
                                      RulesRepository rulesRepository)

getValidCategory

protected RulesCategory getValidCategory(Rule rule,
                                         java.lang.String plugin)


Copyright © 2008 SonarSource SA. All Rights Reserved.