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 void
dirRemoved(String path)
boolean
equals(Object o)
void
fileRemoved(String path)
String
getImportedProjectExtId()
VersionedSettingsConfig
getImportedProjectVcsSettings()
Set<String>
getProjectsExtIdsToUpdate()
Returns concrete projects external ids to update instead of all corresponding to Settings VCS Root is set, null otherwise.String
getSettingsFormat()
long
getSettingsRootId()
String
getTargetRevision()
Long
getUserId()
Returns id of the user who performs update from VCS actionint
hashCode()
void
importProject(String projectExtId, VersionedSettingsConfig config)
Specifies id of the project which should be imported from VCS.boolean
isCheckFirstRevisionPresent()
Returns true if TeamCity should check that all projects in settings root have initial revision.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.boolean
isUpdateOnlySpecifiedProjects()
Returns whether concrete projects were specified for update, instead of all corresponding to Settings VCS Root.void
setCheckFirstRevisionPresent(boolean checkFirstRevisionPresent)
Specifies whether TeamCity should check that all projects in settings root have initial revision.void
setReloadUnchangedProjects(boolean reloadUnchangedProjects)
Specify whether projects with same settings as in configs dir should be reloaded.void
setSettingsFormat(String settingsFormat)
void
setUserId(long userId)
boolean
shouldPreserveFile(String path)
void
updateSpecifiedProjects(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>)
-
-