Class VersionedSettingsUpdateConfig
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.VersionedSettingsUpdateConfig
-
public class VersionedSettingsUpdateConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description VersionedSettingsUpdateConfig(long settingsRootId, String targetRevision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddirRemoved(String path)booleanequals(Object o)voidfileRemoved(String path)StringgetImportedProjectExtId()VersionedSettingsConfiggetImportedProjectVcsSettings()Set<String>getProjectsExtIdsToUpdate()Returns concrete projects external ids to update instead of all corresponding to Settings VCS Root is set, null otherwise.StringgetSettingsFormat()longgetSettingsRootId()StringgetTargetRevision()LonggetUserId()Returns id of the user who performs update from VCS actioninthashCode()voidimportProject(String projectExtId, VersionedSettingsConfig config)Specifies id of the project which should be imported from VCS.booleanisCheckFirstRevisionPresent()Returns true if TeamCity should check that all projects in settings root have initial revision.booleanisReloadUnchangedProjects()Returns true if projects with same settings as in configs dir should be reloaded, returns false if only projects with changes should be reloaded.booleanisUpdateOnlySpecifiedProjects()Returns whether concrete projects were specified for update, instead of all corresponding to Settings VCS Root.voidsetCheckFirstRevisionPresent(boolean checkFirstRevisionPresent)Specifies whether TeamCity should check that all projects in settings root have initial revision.voidsetReloadUnchangedProjects(boolean reloadUnchangedProjects)Specify whether projects with same settings as in configs dir should be reloaded.voidsetSettingsFormat(String settingsFormat)voidsetUserId(long userId)booleanshouldPreserveFile(String path)voidupdateSpecifiedProjects(Set<String> projectsExtIdsToUpdate)Sets concrete projects external ids to update instead of all corresponding to Settings VCS Root.
-
-
-
Constructor Detail
-
VersionedSettingsUpdateConfig
public VersionedSettingsUpdateConfig(long settingsRootId, @NotNull String targetRevision)
-
-
Method Detail
-
getSettingsRootId
public long getSettingsRootId()
-
getTargetRevision
@NotNull public String getTargetRevision()
-
fileRemoved
public void fileRemoved(@NotNull String path)
-
dirRemoved
public void dirRemoved(@NotNull String path)
-
shouldPreserveFile
public boolean shouldPreserveFile(@NotNull String path)
-
importProject
public void importProject(@NotNull String projectExtId, @Nullable VersionedSettingsConfig config)Specifies id of the project which should be imported from VCS. If versioned settings config is specified then the imported project will have versioned settings enabled according to this config. At the moment auto enabling of versioned settings is only supported for Portable DSL format, so config should have relative ids option set to true.- Parameters:
projectExtId-config-
-
getImportedProjectExtId
@Nullable public String getImportedProjectExtId()
-
getImportedProjectVcsSettings
@Nullable public VersionedSettingsConfig getImportedProjectVcsSettings()
-
getSettingsFormat
@Nullable public String getSettingsFormat()
-
setSettingsFormat
public void setSettingsFormat(String settingsFormat)
-
isReloadUnchangedProjects
public boolean isReloadUnchangedProjects()
Returns true if projects with same settings as in configs dir should be reloaded, returns false if only projects with changes should be reloaded.- Returns:
- see above
-
setReloadUnchangedProjects
public void setReloadUnchangedProjects(boolean reloadUnchangedProjects)
Specify whether projects with same settings as in configs dir should be reloaded. By default set to false and updater reloads only projects where some changes in configs are detected.
-
setCheckFirstRevisionPresent
public void setCheckFirstRevisionPresent(boolean checkFirstRevisionPresent)
Specifies whether TeamCity should check that all projects in settings root have initial revision.
-
isCheckFirstRevisionPresent
public boolean isCheckFirstRevisionPresent()
Returns true if TeamCity should check that all projects in settings root have initial revision.
-
getUserId
@Nullable public Long getUserId()
Returns id of the user who performs update from VCS action
-
setUserId
public void setUserId(long userId)
-
isUpdateOnlySpecifiedProjects
public boolean isUpdateOnlySpecifiedProjects()
Returns whether concrete projects were specified for update, instead of all corresponding to Settings VCS Root.- Returns:
- whether concrete projects were specified for update
- See Also:
updateSpecifiedProjects(java.util.Set<java.lang.String>),getProjectsExtIdsToUpdate()
-
updateSpecifiedProjects
public void updateSpecifiedProjects(Set<String> projectsExtIdsToUpdate)
Sets concrete projects external ids to update instead of all corresponding to Settings VCS Root.- Parameters:
projectsExtIdsToUpdate- concrete projects external ids to update- See Also:
isUpdateOnlySpecifiedProjects(),getProjectsExtIdsToUpdate()
-
getProjectsExtIdsToUpdate
@Nullable public Set<String> getProjectsExtIdsToUpdate()
Returns concrete projects external ids to update instead of all corresponding to Settings VCS Root is set, null otherwise.- Returns:
- set concrete projects external ids to update, null otherwise
- See Also:
isUpdateOnlySpecifiedProjects(),updateSpecifiedProjects(java.util.Set<java.lang.String>)
-
-