Class VcsSettingsBean


  • public abstract class VcsSettingsBean
    extends java.lang.Object
    This bean contains build configuration VCS settings.
    • Field Detail

      • myVcsManager

        protected final VcsManager myVcsManager
      • VCS_ROOT_COMPARATOR

        public static final java.util.Comparator<SVcsRoot> VCS_ROOT_COMPARATOR
    • Constructor Detail

      • VcsSettingsBean

        public VcsSettingsBean​(@NotNull
                               SProject project,
                               @NotNull
                               BuildTypeSettings buildTypeSettings,
                               @NotNull
                               VcsManager vcsManager,
                               @NotNull
                               ProjectManager projectManager)
        Constructor for existing build configuration.
        Parameters:
        project - current project
        buildTypeSettings - build configuration settings
        vcsManager - VCS manager
    • Method Detail

      • getVcsRoots

        @NotNull
        public java.util.List<VcsRootEntry> getVcsRoots()
      • isShowInefficientCheckoutRulesWarning

        public boolean isShowInefficientCheckoutRulesWarning()
      • isShowIncludeRulesIntersectWarning

        public boolean isShowIncludeRulesIntersectWarning()
      • getVcsRootsWithLabelingSupport

        @NotNull
        public java.util.List<SVcsRoot> getVcsRootsWithLabelingSupport()
      • supportsLabeling

        protected abstract boolean supportsLabeling​(SVcsRoot root)
      • isDefaultExcluded

        public abstract boolean isDefaultExcluded()
      • getAttachableVcsRoots

        @NotNull
        public java.util.List<SVcsRoot> getAttachableVcsRoots()
      • getPopularVcsRoots

        @NotNull
        public java.util.List<SVcsRoot> getPopularVcsRoots()
      • getProjectsMap

        @NotNull
        public java.util.Map<java.lang.String,​SProject> getProjectsMap()
      • addVcsRoot

        public void addVcsRoot​(SVcsRoot vcsRoot)
      • getAvailableCheckoutTypes

        public java.util.List<java.lang.String> getAvailableCheckoutTypes()
      • getVcsRootsCollection

        public java.util.List<VcsRoot> getVcsRootsCollection()
      • getCheckoutType

        public java.lang.String getCheckoutType()
      • getCheckoutDir

        public java.lang.String getCheckoutDir()
      • getCheckoutTypeDescription

        public java.util.Map<java.lang.String,​java.lang.String> getCheckoutTypeDescription()
      • getOwnerProject

        public SProject getOwnerProject()
      • getVcsBrowser

        @Nullable
        public abstract Browser getVcsBrowser​(boolean dirsOnly,
                                              @Nullable
                                              java.lang.String vcsRootId)
        Parameters:
        dirsOnly - if true, directory-only browser will be returned
        vcsRootId - external id of VCS root, if not null then VCS browser is created for this VCS root only (checkout rules are ignored)
        Returns:
        VCS browser if this VCS roots are attached to this bean and listing of files is supported by attached VCS roots, otherwise returns null
      • isVcsBrowsingPossible

        public boolean isVcsBrowsingPossible()
      • getAvailableVcsTypes

        @NotNull
        public java.util.List<VcsSupportConfig> getAvailableVcsTypes()
      • getAvailableVcsTypes

        @NotNull
        public static java.util.List<VcsSupportConfig> getAvailableVcsTypes​(@NotNull
                                                                            VcsManager vcsManager)