|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cert.cc.jira.atc.config.ProjectConfiguration
public final class ProjectConfiguration
ProjectConfiguration holds the configuration for a single JIRA project. It is made up of
a Set of IssueConfiguration objects.
A special ProjectConfiguration with a name of * is a catch-all for all projects. There should be only one catch-all configuration, but it is not enforced by the code.
ProjectConfiguration is sortable with the catch-all configuration always being last.
© 2010 Carnegie Mellon University
| Constructor Summary | |
|---|---|
ProjectConfiguration()
Constructor |
|
| Method Summary | |
|---|---|
void |
addTypeConfiguration(IssueTypeConfiguration itc)
Adds the IssueTypeConfiguration |
int |
compareTo(ProjectConfiguration other)
|
boolean |
equals(Object o)
|
Set<IssueConfiguration> |
getIssueConfigurations(IssueType issueType,
Trigger trigger)
Returns a Set of IssueConfigurations for an issueTypeName
and trigger. |
String |
getName()
Returns the name |
int |
hashCode()
|
boolean |
isCatchAll()
Returns if this is a catch all |
boolean |
matches(Project project)
Returns if this ProjectConfiguration is used for the specified project. |
void |
setName(String name)
Sets the name |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectConfiguration()
| Method Detail |
|---|
public boolean matches(Project project)
project. A catch-all (name equal to *)
will match any name.
project - Project to be matched
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(ProjectConfiguration other)
compareTo in interface Comparable<ProjectConfiguration>public boolean isCatchAll()
public void addTypeConfiguration(IssueTypeConfiguration itc)
IssueTypeConfiguration
public Set<IssueConfiguration> getIssueConfigurations(IssueType issueType,
Trigger trigger)
Set of IssueConfigurations for an issueTypeName
and trigger. If none are found an empty Set is returned.
issueType - IssueType to be matchedtrigger - Kick-Off Trigger
Set of IssueConfigurations or an empty Setpublic String getName()
public void setName(String name)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||