public class GerritProject extends Object implements hudson.model.Describable<GerritProject>
Modifier and Type | Class and Description |
---|---|
static class |
GerritProject.DescriptorImpl
Descriptor allowing for communication within the Repeatable.
|
Constructor and Description |
---|
GerritProject()
Default empty constructor.
|
GerritProject(CompareType compareType,
String pattern,
List<Branch> branches,
List<Topic> topics,
List<FilePath> filePaths,
List<FilePath> forbiddenFilePaths,
boolean disableStrictForbiddenFileVerification)
DataBound Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
List<FilePath> |
getForbiddenFilePaths()
The list of the forbidden file-path rules.
|
String |
getPattern()
The pattern for the project-name to match on.
|
List<Topic> |
getTopics()
The list of topic-rules.
|
boolean |
isDisableStrictForbiddenFileVerification()
Whether to disable strict verification of forbidden files.
|
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 |
setDisableStrictForbiddenFileVerification(boolean disableStrictForbiddenFileVerification)
Set whether to disable strict verification of forbidden files.
|
void |
setFilePaths(List<FilePath> filePaths)
The list of filepath-rules.
|
void |
setForbiddenFilePaths(List<FilePath> forbiddenFilePaths)
The list of the forbidden file-path rules.
|
void |
setPattern(String pattern)
The pattern for the project-name to match on.
|
void |
setTopics(List<Topic> topics)
The list of topic-rules.
|
public GerritProject()
@DataBoundConstructor public GerritProject(CompareType compareType, String pattern, List<Branch> branches, List<Topic> topics, List<FilePath> filePaths, List<FilePath> forbiddenFilePaths, boolean disableStrictForbiddenFileVerification)
compareType
- the compareTypepattern
- the project-name patternbranches
- the branch-rulestopics
- the topic-rulesfilePaths
- the file-path rules.forbiddenFilePaths
- the forbidden file-path rules.disableStrictForbiddenFileVerification
- whether to be strict or not.public boolean isDisableStrictForbiddenFileVerification()
public void setDisableStrictForbiddenFileVerification(boolean disableStrictForbiddenFileVerification)
disableStrictForbiddenFileVerification
- true to disable.public CompareType getCompareType()
public void setCompareType(CompareType compareType)
compareType
- the compareTypepublic String getPattern()
public void setPattern(String pattern)
pattern
- the patternpublic void setBranches(List<Branch> branches)
branches
- the branch-rulespublic List<FilePath> getFilePaths()
public void setFilePaths(List<FilePath> filePaths)
filePaths
- the filepath-rulespublic void setTopics(List<Topic> topics)
topics
- the topic-rulespublic List<FilePath> getForbiddenFilePaths()
public void setForbiddenFilePaths(List<FilePath> forbiddenFilePaths)
forbiddenFilePaths
- the forbidden file-path rules.public 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>
Copyright © 2016. All rights reserved.