com.atlassian.bamboo.chains
Class ChainConversionServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.chains.ChainConversionServiceImpl
All Implemented Interfaces:
ChainConversionService

public class ChainConversionServiceImpl
extends java.lang.Object
implements ChainConversionService


Constructor Summary
ChainConversionServiceImpl(TestsManager testsManager, LabelManager labelManager, AuditLogService auditLogService, CommentManager commentManager, com.atlassian.bandana.BandanaPersister bandanaPersister)
           
 
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 copyResultDetails(ResultsSummary from, ResultsSummary to)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainConversionServiceImpl

public ChainConversionServiceImpl(TestsManager testsManager,
                                  LabelManager labelManager,
                                  AuditLogService auditLogService,
                                  CommentManager commentManager,
                                  com.atlassian.bandana.BandanaPersister bandanaPersister)
Method Detail

copyBuildNumbersAndVcsRevisionKeys

public void copyBuildNumbersAndVcsRevisionKeys(@NotNull
                                               Plan from,
                                               @NotNull
                                               Plan to)
Description copied from interface: ChainConversionService
Copies the build numbers and vcs revision keys from one plan to another

Specified by:
copyBuildNumbersAndVcsRevisionKeys in interface ChainConversionService
Parameters:
from - the plan to copy from
to - the plan to copy to

copyAuditLog

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

Specified by:
copyAuditLog in interface ChainConversionService
Parameters:
from - the plan to copy from
to - the plan to copy to

copyLabels

public void copyLabels(@NotNull
                       Plan from,
                       @NotNull
                       Plan to)
Description copied from interface: ChainConversionService
Copies plan level labels from one plan to another. Will save new labels to the database

Specified by:
copyLabels in interface ChainConversionService
Parameters:
from - the plan to copy from
to - the plan to copy to

copyBandanaData

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

Specified by:
copyBandanaData in interface ChainConversionService
Parameters:
from - the plan to copy from
to - the plan to copy to

updateChainResultFromResult

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

Specified by:
updateChainResultFromResult in interface ChainConversionService
Parameters:
originalResult - result to copy from
chainResult - result to copy to

copyResultDetails

public void copyResultDetails(@NotNull
                              ResultsSummary from,
                              @NotNull
                              ResultsSummary to)

copyLabels

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

Specified by:
copyLabels in interface ChainConversionService
Parameters:
from - result summary to copy from
to - result summary to copy to

copyComments

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

Specified by:
copyComments in interface ChainConversionService
Parameters:
from - result summary to copy from
to - result summary to copy to

swapNotificationRules

public void swapNotificationRules(Chain chain)
Description copied from interface: ChainConversionService
Looks up the notification rules against the chain and based on the predefined mapping rules swaps out some for others

Specified by:
swapNotificationRules in interface ChainConversionService
Parameters:
chain - to update notifications for


Copyright © 2011 Atlassian. All Rights Reserved.