Package com.atlassian.bamboo.fieldvalue
Class BuildDefinitionConverterImpl
java.lang.Object
com.atlassian.bamboo.fieldvalue.BuildDefinitionConverterImpl
- All Implemented Interfaces:
BuildDefinitionConverter
Converts a
BuildDefinition
to and from an XMLConfiguration
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter
BUILD_POLLING, BUILD_TRIGGER_IP, CLEAN_WORKING_DIRECTORY, DEPENDENT_WILL_BE_TRIGGERED_BY, DEPENDENT_WILL_TRIGGER, INHERIT_REPOSITORY, REPOSITORY_DEFINING_WORKING_DIRECTORY, SELECTED_BUILD_STRATEGY, SELECTED_BUILDER_KEY
-
Constructor Summary
ConstructorDescriptionBuildDefinitionConverterImpl
(@NotNull com.atlassian.plugin.PluginAccessor pluginAccessor) -
Method Summary
Modifier and TypeMethodDescription@NotNull BuildDefinition
copyConfigurationToDefinition
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull BuildDefinition buildDefinition) Copies theHierarchicalConfiguration
items to the passedBuildDefinition
object@NotNull BuildDefinition
fillBuildDefinition
(@NotNull BuildDefinition buildDefinition, @NotNull Plan plan, boolean isMerged) @NotNull BuildDefinition
fillBuildDefinition
(@NotNull Pair<EnrichedPlanDto, ImmutablePlan> dtoWithImmutableEntity, @Nullable Pair<EnrichedPlanDto, ImmutablePlan> masterDtoWithImmutableEntity) org.apache.commons.configuration.XMLConfiguration
fromObject
(@NotNull PartialBuildDefinition buildDefinition) static <T extends OptionallyConvertibleFromConfig>
Tpopulate
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, T optionallyConvertibleFromConfig)
-
Constructor Details
-
BuildDefinitionConverterImpl
public BuildDefinitionConverterImpl(@NotNull @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor)
-
-
Method Details
-
fillBuildDefinition
@NotNull public @NotNull BuildDefinition fillBuildDefinition(@NotNull @NotNull BuildDefinition buildDefinition, @NotNull @NotNull Plan plan, boolean isMerged) - Specified by:
fillBuildDefinition
in interfaceBuildDefinitionConverter
-
fillBuildDefinition
@NotNull public @NotNull BuildDefinition fillBuildDefinition(@NotNull @NotNull Pair<EnrichedPlanDto, ImmutablePlan> dtoWithImmutableEntity, @Nullable @Nullable Pair<EnrichedPlanDto, ImmutablePlan> masterDtoWithImmutableEntity) - Specified by:
fillBuildDefinition
in interfaceBuildDefinitionConverter
-
fromObject
public org.apache.commons.configuration.XMLConfiguration fromObject(@NotNull @NotNull PartialBuildDefinition buildDefinition) - Specified by:
fromObject
in interfaceBuildDefinitionConverter
-
copyConfigurationToDefinition
@NotNull public @NotNull BuildDefinition copyConfigurationToDefinition(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull @NotNull BuildDefinition buildDefinition) Description copied from interface:BuildDefinitionConverter
Copies theHierarchicalConfiguration
items to the passedBuildDefinition
object- Specified by:
copyConfigurationToDefinition
in interfaceBuildDefinitionConverter
- Returns:
-
getTransformerDescriptors
-
populate
@Nullable public static <T extends OptionallyConvertibleFromConfig> T populate(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull T optionallyConvertibleFromConfig)
-