org.sonar.api.rules
Class ActiveRuleChange

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by org.sonar.api.rules.ActiveRuleChange

public class ActiveRuleChange
extends BaseIdentifiable

A class to map a RuleChange to the hibernate model

Since:
2.9

Constructor Summary
ActiveRuleChange(String userName, RulesProfile profile, Rule rule)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<ActiveRuleParamChange> getActiveRuleParamChanges()
           
 String getConfigKey()
           
 RulePriority getNewSeverity()
           
 RulePriority getOldSeverity()
           
 int getProfileVersion()
           
 String getRepositoryKey()
           
 Rule getRule()
           
 String getRuleKey()
           
 RulesProfile getRulesProfile()
           
 String getUserName()
           
 int hashCode()
           
 Boolean isEnabled()
           
 void setEnabled(Boolean enabled)
           
 void setNewSeverity(RulePriority newSeverity)
           
 void setOldSeverity(RulePriority oldSeverity)
           
 ActiveRuleChange setParameterChange(String key, String oldValue, String newValue)
           
 String toString()
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveRuleChange

public ActiveRuleChange(String userName,
                        RulesProfile profile,
                        Rule rule)
Method Detail

getRule

public Rule getRule()

getOldSeverity

public RulePriority getOldSeverity()

setOldSeverity

public void setOldSeverity(RulePriority oldSeverity)

getNewSeverity

public RulePriority getNewSeverity()

setNewSeverity

public void setNewSeverity(RulePriority newSeverity)

getRulesProfile

public RulesProfile getRulesProfile()

getProfileVersion

public int getProfileVersion()

getRepositoryKey

public String getRepositoryKey()

getConfigKey

public String getConfigKey()
Returns:
the config key the changed rule belongs to

getRuleKey

public String getRuleKey()
Returns:
the key of the changed rule

isEnabled

public Boolean isEnabled()

setEnabled

public void setEnabled(Boolean enabled)

getActiveRuleParamChanges

public List<ActiveRuleParamChange> getActiveRuleParamChanges()

getUserName

public String getUserName()

setParameterChange

public ActiveRuleChange setParameterChange(String key,
                                           String oldValue,
                                           String newValue)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.