jetbrains.buildServer.controllers.admin.projects
Class VcsSettingsBean

java.lang.Object
  extended by jetbrains.buildServer.controllers.RememberState
      extended by jetbrains.buildServer.controllers.admin.projects.VcsSettingsBean
All Implemented Interfaces:
StatefulObject

public abstract class VcsSettingsBean
extends RememberState

This bean contains build configuration VCS settings.


Field Summary
protected  VcsManager myVcsManager
           
static java.util.Comparator<SVcsRoot> VCS_ROOT_COMPARATOR
           
 
Constructor Summary
VcsSettingsBean(SProject project, BuildTypeSettings buildTypeSettings, VcsManager vcsManager, ProjectManager projectManager)
          Constructor for existing build configuration.
VcsSettingsBean(SProject ownerProject, VcsManager vcsManager, ProjectManager projectManager)
          Constructor for creating new build configuration.
 
Method Summary
 void addVcsRoot(SVcsRoot vcsRoot)
           
 java.util.List<SVcsRoot> getAttachableVcsRoots()
           
 java.util.List<java.lang.String> getAvailableCheckoutTypes()
           
 java.util.List<VcsSupportConfig> getAvailableVcsPlugins()
           
 java.lang.String getBranchFilter()
           
 java.lang.String getCheckoutDir()
           
 java.lang.String getCheckoutType()
           
 java.util.Map<java.lang.String,java.lang.String> getCheckoutTypeDescription()
           
 java.lang.String getEscapedBranchFilter()
           
 java.lang.String getLabelingPattern()
           
 java.util.Map<java.lang.String,java.lang.Boolean> getLabelingRoots()
           
 VcsLabelingSettings.LabelingType getLabelingType()
           
 java.lang.String getLabelingTypeStr()
           
 SProject getOwnerProject()
           
 java.util.Map<java.lang.String,SProject> getProjectsMap()
           
 java.util.List<VcsRoot> getRootsToLabel()
           
 java.util.Map<java.lang.Long,java.lang.Boolean> getSupportingLabelingVcsRoots()
           
 java.util.List<VcsRootEntry> getVcsRoots()
           
 java.util.List<VcsRoot> getVcsRootsCollection()
           
 boolean isCleanBuild()
           
 boolean isExpandBranchFilter()
           
 boolean isHasCustomBranchFilter()
           
 boolean isShowDependenciesChanges()
           
 boolean isShowIncludeRulesIntersectWarning()
           
 boolean isShowInefficientCheckoutRulesWarning()
           
 void removeVcsRoot(SVcsRoot vcsRoot)
           
 void setBranchFilter(java.lang.String branchFilter)
           
 void setCheckoutDir(java.lang.String checkoutDir)
           
 void setCheckoutRules(SVcsRoot root, CheckoutRules checkoutRules)
           
 void setCheckoutType(java.lang.String checkoutType)
           
 void setCleanBuild(boolean cleanBuild)
           
 void setLabelingPattern(java.lang.String labelingPattern)
           
 void setLabelingRoots(java.util.Map<java.lang.String,java.lang.Boolean> labelingRoots)
           
 void setLabelingTypeStr(java.lang.String name)
           
 void setShowDependenciesChanges(boolean showDepsChanges)
           
protected abstract  boolean supportsLabeling(SVcsRoot root)
           
 void updateBuildTypeSettings(BuildTypeSettings buildTypeSettings, boolean updateCheckoutRules)
           
 
Methods inherited from class jetbrains.buildServer.controllers.RememberState
findField, forgetState, isFieldModified, isStateModified, rememberState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

VcsSettingsBean

public VcsSettingsBean(@NotNull
                       SProject ownerProject,
                       @NotNull
                       VcsManager vcsManager,
                       @NotNull
                       ProjectManager projectManager)
Constructor for creating new build configuration.

Parameters:
ownerProject - project where build configuration is creating
vcsManager - VCS manager
Method Detail

getVcsRoots

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

isShowInefficientCheckoutRulesWarning

public boolean isShowInefficientCheckoutRulesWarning()

isShowIncludeRulesIntersectWarning

public boolean isShowIncludeRulesIntersectWarning()

getSupportingLabelingVcsRoots

public java.util.Map<java.lang.Long,java.lang.Boolean> getSupportingLabelingVcsRoots()

supportsLabeling

protected abstract boolean supportsLabeling(SVcsRoot root)

getAttachableVcsRoots

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

getProjectsMap

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

getAvailableVcsPlugins

public java.util.List<VcsSupportConfig> getAvailableVcsPlugins()

addVcsRoot

public void addVcsRoot(SVcsRoot vcsRoot)

removeVcsRoot

public void removeVcsRoot(SVcsRoot vcsRoot)

getAvailableCheckoutTypes

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

getVcsRootsCollection

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

getCheckoutType

public java.lang.String getCheckoutType()

setCheckoutType

public void setCheckoutType(java.lang.String checkoutType)

getCheckoutTypeDescription

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

getOwnerProject

public SProject getOwnerProject()

setCheckoutRules

public void setCheckoutRules(SVcsRoot root,
                             CheckoutRules checkoutRules)

getLabelingType

public VcsLabelingSettings.LabelingType getLabelingType()

getLabelingTypeStr

public java.lang.String getLabelingTypeStr()

setLabelingTypeStr

public void setLabelingTypeStr(java.lang.String name)

getLabelingPattern

public java.lang.String getLabelingPattern()

setLabelingPattern

public void setLabelingPattern(java.lang.String labelingPattern)

getBranchFilter

public java.lang.String getBranchFilter()

isHasCustomBranchFilter

public boolean isHasCustomBranchFilter()

isExpandBranchFilter

public boolean isExpandBranchFilter()

getEscapedBranchFilter

public java.lang.String getEscapedBranchFilter()

setBranchFilter

public void setBranchFilter(java.lang.String branchFilter)

getLabelingRoots

public java.util.Map<java.lang.String,java.lang.Boolean> getLabelingRoots()

setLabelingRoots

public void setLabelingRoots(java.util.Map<java.lang.String,java.lang.Boolean> labelingRoots)

getRootsToLabel

public java.util.List<VcsRoot> getRootsToLabel()

updateBuildTypeSettings

public void updateBuildTypeSettings(BuildTypeSettings buildTypeSettings,
                                    boolean updateCheckoutRules)

getCheckoutDir

public java.lang.String getCheckoutDir()

setCheckoutDir

public void setCheckoutDir(java.lang.String checkoutDir)

isCleanBuild

public boolean isCleanBuild()

setCleanBuild

public void setCleanBuild(boolean cleanBuild)

setShowDependenciesChanges

public void setShowDependenciesChanges(boolean showDepsChanges)

isShowDependenciesChanges

public boolean isShowDependenciesChanges()