Class CurrentBranches
- java.lang.Object
-
- jetbrains.buildServer.controllers.BranchBean
-
- jetbrains.buildServer.controllers.BuildTypeBranchBean
-
- jetbrains.buildServer.controllers.CurrentBranches
-
public class CurrentBranches extends BuildTypeBranchBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CurrentBranches.BranchesProvider
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.controllers.BuildTypeBranchBean
myBuildType
-
-
Constructor Summary
Constructors Constructor Description CurrentBranches(String userBranch, SBuildType buildType, CurrentBranches.BranchesProvider lazyBranches)
CurrentBranches(BranchEx branch, SBuildType buildType, CurrentBranches.BranchesProvider lazyBranches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildTypeBranchBean
createIn(SBuildType buildType)
BranchEx
getBranch()
Set<Branch>
getBranches()
Actually contains instances on BranchExString
getUserBranch()
Name of the branch as presented in the URL.boolean
isAllBranches()
boolean
isSingleBranch()
String
toString()
-
Methods inherited from class jetbrains.buildServer.controllers.BuildTypeBranchBean
allBranches, allBranches, getBuildType, isMatchesDefault, isSelectedBranchExcluded, matches, matches
-
Methods inherited from class jetbrains.buildServer.controllers.BranchBean
isDefaultBranch, isWildcardBranch
-
-
-
-
Constructor Detail
-
CurrentBranches
public CurrentBranches(@NotNull String userBranch, @NotNull SBuildType buildType, @Nullable CurrentBranches.BranchesProvider lazyBranches)
-
CurrentBranches
public CurrentBranches(@NotNull BranchEx branch, @NotNull SBuildType buildType, @NotNull CurrentBranches.BranchesProvider lazyBranches)
-
-
Method Detail
-
getUserBranch
@NotNull public String getUserBranch()
Description copied from class:BranchBean
Name of the branch as presented in the URL. It is the logical branch name (when isSingleBranch returns true) or it can represent set of branches- Specified by:
getUserBranch
in classBranchBean
-
getBranch
@Nullable public BranchEx getBranch()
- Specified by:
getBranch
in classBuildTypeBranchBean
- Returns:
- null if not a single branch
-
isAllBranches
public boolean isAllBranches()
- Specified by:
isAllBranches
in classBranchBean
-
isSingleBranch
public boolean isSingleBranch()
- Specified by:
isSingleBranch
in classBranchBean
- Returns:
- true if this bean represents a single branch
-
getBranches
@Nullable public Set<Branch> getBranches()
Actually contains instances on BranchEx- Specified by:
getBranches
in classBuildTypeBranchBean
- Returns:
-
createIn
@NotNull public BuildTypeBranchBean createIn(@NotNull SBuildType buildType)
- Specified by:
createIn
in classBranchBean
-
-