|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.database.BaseIdentifiable org.sonar.api.profiles.RulesProfile
public class RulesProfile
Class to map rules profile with hibernate model
Field Summary | |
---|---|
static String |
SONAR_WAY_FINDBUGS_NAME
The profile key for the embedded profile Sonar Way with Findbugs |
static String |
SONAR_WAY_NAME
The profile key for the embedded profile Sonar Way |
static String |
SUN_CONVENTIONS_NAME
The profile key for the embedded profile Sun checks |
Constructor Summary | |
---|---|
RulesProfile()
Default constructor |
|
RulesProfile(String name,
String language)
Creates a profile of rules with empty active rules, empty alerts and empty project lists. |
|
RulesProfile(String name,
String language,
boolean defaultProfile,
boolean provided)
Creates a profile of rules with empty active rules, empty alerts and empty project lists. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object obj)
|
ActiveRule |
getActiveRule(Rule rule)
THIS METHOD SHOULD NOT BE USED AS CURRENTLY THE PLUGIN KEY CAN NOT BE DETERMINED |
ActiveRule |
getActiveRule(String pluginKey,
String ruleKey)
|
List<ActiveRule> |
getActiveRules()
|
List<ActiveRule> |
getActiveRules(RulePriority priority)
|
List<ActiveRule> |
getActiveRulesByPlugin(String pluginKey)
|
List<Alert> |
getAlerts()
|
Boolean |
getDefaultProfile()
|
String |
getLanguage()
|
String |
getName()
|
List<ResourceModel> |
getProjects()
|
Boolean |
getProvided()
|
int |
hashCode()
|
void |
setActiveRules(List<ActiveRule> activeRules)
Sets the list of active rules |
void |
setAlerts(List<Alert> alerts)
Sets the list of alerts for the profile |
void |
setDefaultProfile(Boolean defaultProfile)
Sets whether this is the default profile for the language |
void |
setLanguage(String language)
Sets the language for the profile |
void |
setName(String name)
Sets the name of the profile |
void |
setProjects(List<ResourceModel> projects)
Sets the list of projects attached to the profile |
void |
setProvided(Boolean provided)
Sets wether the profile ships with Sonar core |
String |
toString()
|
Methods inherited from class org.sonar.api.database.BaseIdentifiable |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SONAR_WAY_NAME
public static final String SONAR_WAY_FINDBUGS_NAME
public static final String SUN_CONVENTIONS_NAME
Constructor Detail |
---|
public RulesProfile()
public RulesProfile(String name, String language)
Creates a profile of rules with empty active rules, empty alerts and empty project lists.
name
- the name to be used to access the profile, will be used as a key and display namelanguage
- the language to which this profile appliespublic RulesProfile(String name, String language, boolean defaultProfile, boolean provided)
Creates a profile of rules with empty active rules, empty alerts and empty project lists.
name
- the name to be used to access the profile, will be used as a key and display namelanguage
- the language to which this profile appliesdefaultProfile
- whether this is the default profile for the languageprovided
- whether the profile is embarked in core SonarMethod Detail |
---|
public String getName()
public void setName(String name)
public List<ActiveRule> getActiveRules()
public void setActiveRules(List<ActiveRule> activeRules)
public Boolean getDefaultProfile()
public void setDefaultProfile(Boolean defaultProfile)
public Boolean getProvided()
public void setProvided(Boolean provided)
public String getLanguage()
public void setLanguage(String language)
public List<Alert> getAlerts()
public void setAlerts(List<Alert> alerts)
public List<ResourceModel> getProjects()
public void setProjects(List<ResourceModel> projects)
public List<ActiveRule> getActiveRules(RulePriority priority)
public List<ActiveRule> getActiveRulesByPlugin(String pluginKey)
public ActiveRule getActiveRule(String pluginKey, String ruleKey)
public ActiveRule getActiveRule(Rule rule)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object clone()
clone
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |