|
||||||||||
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,
java.lang.String pattern,
java.util.List<Branch> branches,
java.util.List<FilePath> filePaths)
DataBound Constructor. |
Method Summary | |
---|---|
java.util.List<Branch> |
getBranches()
The list of FilePath-rules. |
CompareType |
getCompareType()
Which algorithm-type to use with the pattern. |
hudson.model.Descriptor<GerritProject> |
getDescriptor()
|
java.util.List<FilePath> |
getFilePaths()
The list of filepath-rules. |
java.lang.String |
getPattern()
The pattern for the project-name to match on. |
boolean |
isInteresting(java.lang.String project,
java.lang.String branch)
Compares the project and branch to see if the rules specified is a match. |
boolean |
isInteresting(java.lang.String project,
java.lang.String branch,
java.util.List<java.lang.String> files)
Compares the project, branch and files to see if the rules specified is a match. |
void |
setBranches(java.util.List<Branch> branches)
The list of FilePath-rules. |
void |
setCompareType(CompareType compareType)
Which algorithm-type to use with the pattern. |
void |
setFilePaths(java.util.List<FilePath> filePaths)
The list of filepath-rules. |
void |
setPattern(java.lang.String pattern)
The pattern for the project-name to match on. |
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, java.lang.String pattern, java.util.List<Branch> branches, java.util.List<FilePath> filePaths)
compareType
- the compareTypepattern
- the project-name patternbranches
- the branch-rulesfilePaths
- the file-path rules.Method Detail |
---|
public CompareType getCompareType()
public void setCompareType(CompareType compareType)
compareType
- the compareTypepublic java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern
- the patternpublic java.util.List<Branch> getBranches()
public void setBranches(java.util.List<Branch> branches)
branches
- the branch-rulespublic java.util.List<FilePath> getFilePaths()
public void setFilePaths(java.util.List<FilePath> filePaths)
filePaths
- the filepath-rulespublic boolean isInteresting(java.lang.String project, java.lang.String branch, java.util.List<java.lang.String> files)
project
- the gerrit projectbranch
- the branch.files
- the files.
public boolean isInteresting(java.lang.String project, java.lang.String branch)
project
- the gerrit projectbranch
- the branch.
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 |