Class BranchBeanFactory


  • public class BranchBeanFactory
    extends Object
    Author:
    Yegor.Yarko Date: 09/07/2018
    • Method Detail

      • createBranchBean

        @NotNull
        public BranchBean createBranchBean​(@Nullable
                                           String userBranch)
      • createBranchBean

        @NotNull
        public BuildTypeBranchBean createBranchBean​(@Nullable
                                                    String userBranch,
                                                    @NotNull
                                                    SBuildType buildType)
        Creates branch bean from the "userBranch" name. Defaults to "all branches"
      • createBranchBean

        @NotNull
        public BuildTypeBranchBean createBranchBean​(@Nullable
                                                    BranchEx branch,
                                                    @NotNull
                                                    SBuildType buildType)
        Creates branch bean from the branch. Defaults to default branch
      • hasBranchDataInRequest

        public boolean hasBranchDataInRequest​(@NotNull
                                              javax.servlet.http.HttpServletRequest request,
                                              @NotNull
                                              SProject project)
      • getBranchBeanFromRequest

        @NotNull
        public BuildTypeBranchBean getBranchBeanFromRequest​(@NotNull
                                                            javax.servlet.http.HttpServletRequest request,
                                                            @NotNull
                                                            SBuildType buildType)
      • getBranchBeanFromRequest

        @NotNull
        public BranchBean getBranchBeanFromRequest​(@NotNull
                                                   javax.servlet.http.HttpServletRequest request,
                                                   @NotNull
                                                   SProject project)