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 interfaceCurrentBranches.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 BuildTypeBranchBeancreateIn(SBuildType buildType)BranchExgetBranch()Set<Branch>getBranches()Actually contains instances on BranchExStringgetUserBranch()Name of the branch as presented in the URL.booleanisAllBranches()booleanisSingleBranch()StringtoString()-
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:BranchBeanName 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:
getUserBranchin classBranchBean
-
getBranch
@Nullable public BranchEx getBranch()
- Specified by:
getBranchin classBuildTypeBranchBean- Returns:
- null if not a single branch
-
isAllBranches
public boolean isAllBranches()
- Specified by:
isAllBranchesin classBranchBean
-
isSingleBranch
public boolean isSingleBranch()
- Specified by:
isSingleBranchin classBranchBean- Returns:
- true if this bean represents a single branch
-
getBranches
@Nullable public Set<Branch> getBranches()
Actually contains instances on BranchEx- Specified by:
getBranchesin classBuildTypeBranchBean- Returns:
-
createIn
@NotNull public BuildTypeBranchBean createIn(@NotNull SBuildType buildType)
- Specified by:
createInin classBranchBean
-
-