|
||||||||||
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 java.lang.String |
SONAR_WAY_FINDBUGS_NAME
The profile key for the embedded profile Sonar Way with Findbugs |
static java.lang.String |
SONAR_WAY_NAME
The profile key for the embedded profile Sonar Way |
static java.lang.String |
SUN_CONVENTIONS_NAME
The profile key for the embedded profile Sun checks |
Constructor Summary | |
---|---|
RulesProfile()
Default constructor |
|
RulesProfile(java.lang.String name,
java.lang.String language)
Creates a profile of rules with empty active rules, empty alerts and empty project lists. |
|
RulesProfile(java.lang.String name,
java.lang.String language,
boolean defaultProfile,
boolean provided)
Creates a profile of rules with empty active rules, empty alerts and empty project lists. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
ActiveRule |
getActiveRule(Rule rule)
THIS METHOD SHOULD NOT BE USED AS CURRENTLY THE PLUGIN KEY CAN NOT BE DETERMINED |
ActiveRule |
getActiveRule(java.lang.String pluginKey,
java.lang.String ruleKey)
|
java.util.List<ActiveRule> |
getActiveRules()
|
java.util.List<ActiveRule> |
getActiveRules(RulePriority priority)
|
java.util.List<ActiveRule> |
getActiveRulesByPlugin(java.lang.String pluginKey)
|
java.util.List<Alert> |
getAlerts()
|
java.lang.Boolean |
getDefaultProfile()
|
java.lang.String |
getLanguage()
|
java.lang.String |
getName()
|
java.util.List<ResourceModel> |
getProjects()
|
java.lang.Boolean |
getProvided()
|
int |
hashCode()
|
void |
setActiveRules(java.util.List<ActiveRule> activeRules)
Sets the list of active rules |
void |
setAlerts(java.util.List<Alert> alerts)
Sets the list of alerts for the profile |
void |
setDefaultProfile(java.lang.Boolean defaultProfile)
Sets whether this is the default profile for the language |
void |
setLanguage(java.lang.String language)
Sets the language for the profile |
void |
setName(java.lang.String name)
Sets the name of the profile |
void |
setProjects(java.util.List<ResourceModel> projects)
Sets the list of projects attached to the profile |
void |
setProvided(java.lang.Boolean provided)
Sets wether the profile ships with Sonar core |
java.lang.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 java.lang.String SONAR_WAY_NAME
public static final java.lang.String SONAR_WAY_FINDBUGS_NAME
public static final java.lang.String SUN_CONVENTIONS_NAME
Constructor Detail |
---|
public RulesProfile()
public RulesProfile(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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 java.lang.String getName()
public void setName(java.lang.String name)
public java.util.List<ActiveRule> getActiveRules()
public void setActiveRules(java.util.List<ActiveRule> activeRules)
public java.lang.Boolean getDefaultProfile()
public void setDefaultProfile(java.lang.Boolean defaultProfile)
public java.lang.Boolean getProvided()
public void setProvided(java.lang.Boolean provided)
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public java.util.List<Alert> getAlerts()
public void setAlerts(java.util.List<Alert> alerts)
public java.util.List<ResourceModel> getProjects()
public void setProjects(java.util.List<ResourceModel> projects)
public java.util.List<ActiveRule> getActiveRules(RulePriority priority)
public java.util.List<ActiveRule> getActiveRulesByPlugin(java.lang.String pluginKey)
public ActiveRule getActiveRule(java.lang.String pluginKey, java.lang.String ruleKey)
public ActiveRule getActiveRule(Rule rule)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |