Class VersionedSettingsUpdateConfig


  • public class VersionedSettingsUpdateConfig
    extends Object
    • 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()
      • 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)
      • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object