public class PlanConfigImportServiceImpl extends Object implements PlanConfigImportService
PlanConfigImportService.ImportResult| Constructor and Description |
|---|
PlanConfigImportServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.bamboo.specs.api.model.plan.PlanProperties |
convertYamlToPlan(String yaml)
Converts data from a YAML document to top level plan properties.
|
PlanConfigImportService.ImportResult |
importPlan(com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
com.atlassian.user.User userForCreation,
RssPermissions rssPermissions)
Validates exported top level plan properties within Bamboo context (e.g.
|
PlanConfigImportService.ImportResult |
importPlan(com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
com.atlassian.user.User userForCreation,
RssPermissions rssPermissions,
boolean deferEvents,
boolean noChangesInProperties)
Validates exported top level plan properties within Bamboo context (e.g.
|
PlanConfigImportService.ImportResult |
importPlanBranch(com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
VcsBranch vcsBranch,
com.atlassian.user.User user,
RssPermissions rssPermissions)
Import plan branch using specs.
|
void |
sendEventsAndScheduleTriggersForBranchIfRequired(PlanConfigImportService.ImportResult importResult,
com.atlassian.user.User user)
Sends events related to branch creation or update and initialises triggers.
|
void |
sendEventsAndScheduleTriggersIfRequired(PlanConfigImportService.ImportResult importResult)
Sends events related to plan creation or update and initialises triggers.
|
PlanConfigImportService.ImportResult |
switchToLightweightBranch(PlanKey planBranchKey)
Convert a divergent branch to a lightweight branch.
|
PlanConfigImportService.ImportResult |
updatePlanBranch(com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
VcsBranch vcsBranch,
com.atlassian.user.User user,
RssPermissions rssPermissions,
DivergentBranchDataBean branchCreationData,
boolean deferEvents,
boolean noChangesInProperties)
Update plan branch using specs.
|
void |
validatePlanBranchProperties(com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
RssPermissions rssPermissions)
This method performs validation of YAML types and of the properties without Bamboo context (e.g.
|
void |
validatePlanProperties(com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
RssPermissions rssPermissions)
This method performs validation of YAML types and of the properties without Bamboo context (e.g.
|
@NotNull
public com.atlassian.bamboo.specs.api.model.plan.PlanProperties convertYamlToPlan(@NotNull
String yaml)
throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException,
YamlValidationException
PlanConfigImportServiceconvertYamlToPlan in interface PlanConfigImportServiceyaml - YAML String containing definition of top level planYamlValidationException - if the format of the YAML file is invalidcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationExceptionpublic void validatePlanProperties(@NotNull
com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
@NotNull
RssPermissions rssPermissions)
throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException,
YamlValidationException,
RssPermissionException
PlanConfigImportServicevalidatePlanProperties in interface PlanConfigImportServiceplanProperties - top level plan propertiesrssPermissions - projects which can allowed for modificationcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - if the imported properties were not validYamlValidationException - if the format of the YAML file is invalidRssPermissionException - if RSS is missing access to projects/repositoriespublic void validatePlanBranchProperties(@NotNull
com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
@NotNull
RssPermissions rssPermissions)
throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException,
YamlValidationException,
RssPermissionException
PlanConfigImportServicevalidatePlanBranchProperties in interface PlanConfigImportServiceplanProperties - plan branch propertiesrssPermissions - projects which can allowed for modificationcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - if the imported properties were not validYamlValidationException - if the format of the YAML file is invalidRssPermissionException - if RSS is missing access to projects/repositories@NotNull public PlanConfigImportService.ImportResult importPlan(@NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties, @Nullable com.atlassian.user.User userForCreation, @NotNull RssPermissions rssPermissions)
PlanConfigImportServiceimportPlan in interface PlanConfigImportServiceplanProperties - top level plan properties to importuserForCreation - user invoking the importrssPermissions - projects which can allowed for modification; since 6.2@NotNull public PlanConfigImportService.ImportResult importPlan(@NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties, @Nullable com.atlassian.user.User userForCreation, @NotNull RssPermissions rssPermissions, boolean deferEvents, boolean noChangesInProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, RssPermissionException
PlanConfigImportServiceimportPlan in interface PlanConfigImportServiceplanProperties - top level plan properties to importuserForCreation - user invoking the importrssPermissions - projects which can allowed for modification; since 6.2deferEvents - when set to true, the import routine will not send creation events nor initialise plan triggerscom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - if data validation failsRssPermissionException - if rss doesn't have access to dependant project@NotNull public PlanConfigImportService.ImportResult importPlanBranch(@NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties, @NotNull VcsBranch vcsBranch, @Nullable com.atlassian.user.User user, @NotNull RssPermissions rssPermissions)
PlanConfigImportServiceimportPlanBranch in interface PlanConfigImportService@NotNull public PlanConfigImportService.ImportResult updatePlanBranch(@NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties, @NotNull VcsBranch vcsBranch, @Nullable com.atlassian.user.User user, @NotNull RssPermissions rssPermissions, @NotNull DivergentBranchDataBean branchCreationData, boolean deferEvents, boolean noChangesInProperties)
PlanConfigImportServiceupdatePlanBranch in interface PlanConfigImportServicepublic void sendEventsAndScheduleTriggersIfRequired(@NotNull
PlanConfigImportService.ImportResult importResult)
PlanConfigImportServicesendEventsAndScheduleTriggersIfRequired in interface PlanConfigImportServicepublic void sendEventsAndScheduleTriggersForBranchIfRequired(@NotNull
PlanConfigImportService.ImportResult importResult,
@Nullable
com.atlassian.user.User user)
PlanConfigImportServicesendEventsAndScheduleTriggersForBranchIfRequired in interface PlanConfigImportService@NotNull public PlanConfigImportService.ImportResult switchToLightweightBranch(@NotNull PlanKey planBranchKey)
PlanConfigImportServiceswitchToLightweightBranch in interface PlanConfigImportServiceCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.