Package com.atlassian.bamboo.fieldvalue
Class BuildDefinitionConverterImpl
- java.lang.Object
-
- com.atlassian.bamboo.fieldvalue.BuildDefinitionConverterImpl
-
- All Implemented Interfaces:
BuildDefinitionConverter
public class BuildDefinitionConverterImpl extends Object implements BuildDefinitionConverter
Converts aBuildDefinition
to and from anXMLConfiguration
-
-
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
Constructors Constructor Description BuildDefinitionConverterImpl(@NotNull com.atlassian.plugin.PluginAccessor pluginAccessor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @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)
List<BuildDefinitionTransformerModuleDescriptor>
getTransformerDescriptors()
static <T extends OptionallyConvertibleFromConfig>
Tpopulate(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, T optionallyConvertibleFromConfig)
-
-
-
Method Detail
-
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
public List<BuildDefinitionTransformerModuleDescriptor> getTransformerDescriptors()
-
populate
@Nullable public static <T extends OptionallyConvertibleFromConfig> T populate(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull T optionallyConvertibleFromConfig)
-
-