com.atlassian.bamboo.chains
Interface ChainConversionService

All Known Implementing Classes:
ChainConversionServiceImpl

public interface ChainConversionService


Method Summary
 void copyAuditLog(Plan from, Plan to)
          Copies the audit log from one plan to another.
 void copyBandanaData(Plan from, Plan to)
          Copies bandana data from one plan to another.
 void copyBuildNumbersAndVcsRevisionKeys(Plan from, Plan to)
          Copies the build numbers and vcs revision keys from one plan to another
 void copyComments(ResultsSummary from, ResultsSummary to)
          Copies comments from one result summary to another.
 void copyLabels(Plan from, Plan to)
          Copies plan level labels from one plan to another.
 void copyLabels(ResultsSummary from, ResultsSummary to)
          Copies labels from one result summary to another.
 void swapNotificationRules(Chain chain)
          Looks up the notification rules against the chain and based on the predefined mapping rules swaps out some for others
 void updateChainResultFromResult(ResultsSummary originalResult, ResultsSummary chainResult)
          Populate the chain result object with any data required.
 

Method Detail

copyBuildNumbersAndVcsRevisionKeys

void copyBuildNumbersAndVcsRevisionKeys(@NotNull
                                        Plan from,
                                        @NotNull
                                        Plan to)
Copies the build numbers and vcs revision keys from one plan to another

Parameters:
from - the plan to copy from
to - the plan to copy to

copyAuditLog

void copyAuditLog(@NotNull
                  Plan from,
                  @NotNull
                  Plan to)
Copies the audit log from one plan to another. Will persist copied data

Parameters:
from - the plan to copy from
to - the plan to copy to

copyBandanaData

void copyBandanaData(@NotNull
                     Plan from,
                     @NotNull
                     Plan to)
Copies bandana data from one plan to another. Will persist copied data.

Parameters:
from - the plan to copy from
to - the plan to copy to

copyLabels

void copyLabels(@NotNull
                Plan from,
                @NotNull
                Plan to)
Copies plan level labels from one plan to another. Will save new labels to the database

Parameters:
from - the plan to copy from
to - the plan to copy to

updateChainResultFromResult

void updateChainResultFromResult(@NotNull
                                 ResultsSummary originalResult,
                                 @NotNull
                                 ResultsSummary chainResult)
Populate the chain result object with any data required. Data pulled from the original result

Parameters:
originalResult - result to copy from
chainResult - result to copy to

copyLabels

void copyLabels(@NotNull
                ResultsSummary from,
                @NotNull
                ResultsSummary to)
Copies labels from one result summary to another. Requires both summaries to already exist in the database Will save labels as it goes.

Parameters:
from - result summary to copy from
to - result summary to copy to

copyComments

void copyComments(@NotNull
                  ResultsSummary from,
                  @NotNull
                  ResultsSummary to)
Copies comments from one result summary to another. Requires both summaries to already exist in the database Will save comments as it goes.

Parameters:
from - result summary to copy from
to - result summary to copy to

swapNotificationRules

void swapNotificationRules(Chain chain)
Looks up the notification rules against the chain and based on the predefined mapping rules swaps out some for others

Parameters:
chain - to update notifications for


Copyright © 2011 Atlassian. All Rights Reserved.