Class OverridableSettingsCopier
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.copy.HolderBasedSettingsCopier
-
- jetbrains.buildServer.serverSide.impl.copy.OverridableSettingsCopier
-
- All Implemented Interfaces:
BuildTypeSettingsCopier
public abstract class OverridableSettingsCopier extends HolderBasedSettingsCopier
Utility abstract class that implements a generic copying algorithm for overridable build type settings.- Author:
- anton.zamolotskikh, 24/03/16.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OverridableSettingsCopier(BuildTypeSettingsEx source, BuildTypeSettingsEx destination, BuildTypeCopySettings copySettings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
copy(Map<String,String> mappedIds)
Performs copying settings.protected abstract Collection<jetbrains.buildServer.serverSide.impl.copy.HolderBasedSettingsCopier.CopiedSettingsHolder>
getDestinationInherited()
Returns a collection of holders containing build type's inherited settings (usually from own templates)protected abstract Collection<jetbrains.buildServer.serverSide.impl.copy.HolderBasedSettingsCopier.CopiedSettingsHolder>
getDestinationOwn()
Returns a collection of holders containing build type own settings-
Methods inherited from class jetbrains.buildServer.serverSide.impl.copy.HolderBasedSettingsCopier
addToSettingsToCopy, createCopiedSettings, findSettingToCopyByContent, findSettingToCopyById, getDestination, getSettingsToCopy, removeFromSettingsToCopy
-
-
-
-
Constructor Detail
-
OverridableSettingsCopier
protected OverridableSettingsCopier(@NotNull BuildTypeSettingsEx source, @NotNull BuildTypeSettingsEx destination, @NotNull BuildTypeCopySettings copySettings)
-
-
Method Detail
-
copy
public void copy(@NotNull Map<String,String> mappedIds)
Description copied from interface:BuildTypeSettingsCopier
Performs copying settings. The instance of the inherited class must already hold a reference to the copied settings before invocation of this method.- Parameters:
mappedIds
- a old id to new id map populated while copying
-
getDestinationOwn
@NotNull protected abstract Collection<jetbrains.buildServer.serverSide.impl.copy.HolderBasedSettingsCopier.CopiedSettingsHolder> getDestinationOwn()
Returns a collection of holders containing build type own settings
-
getDestinationInherited
@NotNull protected abstract Collection<jetbrains.buildServer.serverSide.impl.copy.HolderBasedSettingsCopier.CopiedSettingsHolder> getDestinationInherited()
Returns a collection of holders containing build type's inherited settings (usually from own templates)
-
-