Class DefaultChangeDetectionOptionsConfigurator
java.lang.Object
com.atlassian.bamboo.vcs.configuration.configurator.DefaultChangeDetectionOptionsConfigurator
- All Implemented Interfaces:
VcsChangeDetectionOptionsConfigurator
- Direct Known Subclasses:
BitbucketCloudChangeDetectionOptionsConfigurator
,BitbucketServerChangeDetectionOptionsConfigurator
,GitChangeDetectionOptionsConfigurator
,SvnChangeDetectionOptionsConfigurator
public class DefaultChangeDetectionOptionsConfigurator
extends Object
implements VcsChangeDetectionOptionsConfigurator
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.vcs.configurator.VcsChangeDetectionOptionsConfigurator
CHANGESET_FILTER_REGEX_CFG_KEY, COMMIT_ISOLATION_OPTION_CFG_KEY, FILTER_PATTERN_EXCLUDE_OPTION, FILTER_PATTERN_INCLUDE_OPTION, FILTER_PATTERN_OPTION_CFG_KEY, FILTER_PATTERN_REGEX_CFG_KEY, HANDLED_OPTIONS, QUIET_PERIOD_CFG_KEY, QUIET_PERIOD_ENABLED_CFG_KEY, QUIET_PERIOD_MAX_RETRIES_CFG_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateConfigMap
(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsChangeDetectionOptions previousTriggerDefinition) boolean
Informs if associated repository type supports commits being broken up into individual buildsboolean
Informs if associated repository type works with Bamboo's standard quiet period handling.void
populateContextForCreate
(@NotNull Map<String, Object> context) void
populateContextForEdit
(@NotNull Map<String, Object> context, @NotNull VcsChangeDetectionOptions triggerDefinition) void
populateContextForView
(@NotNull Map<String, Object> context, @NotNull VcsChangeDetectionOptions triggerDefinition) void
validate
(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection)
-
Constructor Details
-
DefaultChangeDetectionOptionsConfigurator
public DefaultChangeDetectionOptionsConfigurator(boolean commitIsolationSupported) -
DefaultChangeDetectionOptionsConfigurator
public DefaultChangeDetectionOptionsConfigurator()
-
-
Method Details
-
populateContextForCreate
- Specified by:
populateContextForCreate
in interfaceVcsChangeDetectionOptionsConfigurator
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull VcsChangeDetectionOptions triggerDefinition) - Specified by:
populateContextForEdit
in interfaceVcsChangeDetectionOptionsConfigurator
-
populateContextForView
public void populateContextForView(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull VcsChangeDetectionOptions triggerDefinition) - Specified by:
populateContextForView
in interfaceVcsChangeDetectionOptionsConfigurator
-
validate
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection) - Specified by:
validate
in interfaceVcsChangeDetectionOptionsConfigurator
-
generateConfigMap
@NotNull public @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsChangeDetectionOptions previousTriggerDefinition) - Specified by:
generateConfigMap
in interfaceVcsChangeDetectionOptionsConfigurator
-
isQuietPeriodSupported
public boolean isQuietPeriodSupported()Description copied from interface:VcsChangeDetectionOptionsConfigurator
Informs if associated repository type works with Bamboo's standard quiet period handling. Depending on the result, proper UI will be rendered (or not) and appropriate options will be added to the configMap.- Specified by:
isQuietPeriodSupported
in interfaceVcsChangeDetectionOptionsConfigurator
- Returns:
- true iff Bamboo should include standard quiet period options in the configuration.
-
isCommitIsolationSupported
public boolean isCommitIsolationSupported()Description copied from interface:VcsChangeDetectionOptionsConfigurator
Informs if associated repository type supports commits being broken up into individual builds- Specified by:
isCommitIsolationSupported
in interfaceVcsChangeDetectionOptionsConfigurator
- Returns:
- true if Bamboo should break the single build changes object into a list of changes
-