|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject
public class GerritProject
Base settings for one matcher rule of a Gerrit project.
Nested Class Summary | |
---|---|
static class |
GerritProject.DescriptorImpl
Descriptor allowing for communication within the Repeatable. |
Constructor Summary | |
---|---|
GerritProject()
Default empty constructor. |
|
GerritProject(CompareType compareType,
String pattern,
List<Branch> branches,
List<Topic> topics,
List<FilePath> filePaths)
DataBound Constructor. |
Method Summary | |
---|---|
List<Branch> |
getBranches()
The list of branch-rules. |
CompareType |
getCompareType()
Which algorithm-type to use with the pattern. |
hudson.model.Descriptor<GerritProject> |
getDescriptor()
|
List<FilePath> |
getFilePaths()
The list of filepath-rules. |
String |
getPattern()
The pattern for the project-name to match on. |
List<Topic> |
getTopics()
The list of topic-rules. |
boolean |
isInteresting(String project,
String branch,
String topic)
Compares the project and branch to see if the rules specified is a match. |
boolean |
isInteresting(String project,
String branch,
String topic,
List<String> files)
Compares the project, branch and files to see if the rules specified is a match. |
void |
setBranches(List<Branch> branches)
The list of branch-rules. |
void |
setCompareType(CompareType compareType)
Which algorithm-type to use with the pattern. |
void |
setFilePaths(List<FilePath> filePaths)
The list of filepath-rules. |
void |
setPattern(String pattern)
The pattern for the project-name to match on. |
void |
setTopics(List<Topic> topics)
The list of topic-rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GerritProject()
@DataBoundConstructor public GerritProject(CompareType compareType, String pattern, List<Branch> branches, List<Topic> topics, List<FilePath> filePaths)
compareType
- the compareTypepattern
- the project-name patternbranches
- the branch-rulestopics
- the topic-rulesfilePaths
- the file-path rules.Method Detail |
---|
public CompareType getCompareType()
public void setCompareType(CompareType compareType)
compareType
- the compareTypepublic String getPattern()
public void setPattern(String pattern)
pattern
- the patternpublic List<Branch> getBranches()
public void setBranches(List<Branch> branches)
branches
- the branch-rulespublic List<FilePath> getFilePaths()
public void setFilePaths(List<FilePath> filePaths)
filePaths
- the filepath-rulespublic List<Topic> getTopics()
public void setTopics(List<Topic> topics)
topics
- the topic-rulespublic boolean isInteresting(String project, String branch, String topic, List<String> files)
project
- the Gerrit projectbranch
- the branch.topic
- the topic.files
- the files.
public boolean isInteresting(String project, String branch, String topic)
project
- the Gerrit projectbranch
- the branch.topic
- the topic.
public hudson.model.Descriptor<GerritProject> getDescriptor()
getDescriptor
in interface hudson.model.Describable<GerritProject>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |