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
ConstructorsConstructorDescriptionBuildDefinitionConverterImpl(@NotNull com.atlassian.plugin.PluginAccessor pluginAccessor) -
Method Summary
Modifier and TypeMethodDescription@NotNull BuildDefinitioncopyConfigurationToDefinition(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull BuildDefinition buildDefinition) Copies theHierarchicalConfigurationitems to the passedBuildDefinitionobject@NotNull BuildDefinitionfillBuildDefinition(@NotNull BuildDefinition buildDefinition, @NotNull Plan plan, boolean isMerged) @NotNull BuildDefinitionfillBuildDefinition(@NotNull Pair<EnrichedPlanDto, ImmutablePlan> dtoWithImmutableEntity, @Nullable ImmutablePlan masterImmutablePlan) org.apache.commons.configuration.XMLConfigurationfromObject(@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:
fillBuildDefinitionin interfaceBuildDefinitionConverter
-
fillBuildDefinition
@NotNull public @NotNull BuildDefinition fillBuildDefinition(@NotNull @NotNull Pair<EnrichedPlanDto, ImmutablePlan> dtoWithImmutableEntity, @Nullable @Nullable ImmutablePlan masterImmutablePlan) - Specified by:
fillBuildDefinitionin interfaceBuildDefinitionConverter
-
fromObject
public org.apache.commons.configuration.XMLConfiguration fromObject(@NotNull @NotNull PartialBuildDefinition buildDefinition) - Specified by:
fromObjectin interfaceBuildDefinitionConverter
-
copyConfigurationToDefinition
@NotNull public @NotNull BuildDefinition copyConfigurationToDefinition(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull @NotNull BuildDefinition buildDefinition) Description copied from interface:BuildDefinitionConverterCopies theHierarchicalConfigurationitems to the passedBuildDefinitionobject- Specified by:
copyConfigurationToDefinitionin interfaceBuildDefinitionConverter- Parameters:
fromConfig-buildDefinition-- Returns:
-
getTransformerDescriptors
-
populate
@Nullable public static <T extends OptionallyConvertibleFromConfig> T populate(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull T optionallyConvertibleFromConfig)
-