com.atlassian.bamboo.plan.branch
Class BranchIntegrationHelperImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.branch.BranchIntegrationHelperImpl
All Implemented Interfaces:
BranchIntegrationHelper

public class BranchIntegrationHelperImpl
extends java.lang.Object
implements BranchIntegrationHelper


Constructor Summary
BranchIntegrationHelperImpl(AdministrationConfigurationManager administrationConfigurationManager)
           
 
Method Summary
 java.lang.String getAuthorEmail(Repository repository)
          Get email of author used for branch integration operations.
 java.lang.String getAuthorName(Repository repository)
          Get name of author used for branch integration operations.
 java.lang.String getCommitterEmail(Repository repository)
          Get email of committer used for branch integration operations.
 java.lang.String getCommitterName(Repository repository)
          Get name of committer used for branch integration operations.
protected  BranchMergingAwareRepository getDefaultRepository(BuildContext buildContext)
          Get default repository narrowed to BranchMergingAwareRepository
 java.lang.String getIntegrationCommitMessage(Repository repository)
          Get commit message used for branch integration operations.
 BranchMergingAwareRepository getIntegrationRepository(BuildContext buildContext)
          Get integration repository narrowed to BranchMergingAwareRepository
 MergeResult merge(BuildContext buildContext, java.io.File mergeDirectory, BuildLogger logger)
          Perform branch merging according to Integration Configuration
protected  java.lang.String toBuildLogger(BuildLogger logger, java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchIntegrationHelperImpl

public BranchIntegrationHelperImpl(AdministrationConfigurationManager administrationConfigurationManager)
Method Detail

getAuthorName

@NotNull
public java.lang.String getAuthorName(@Nullable
                                              Repository repository)
Description copied from interface: BranchIntegrationHelper
Get name of author used for branch integration operations.

Specified by:
getAuthorName in interface BranchIntegrationHelper
Returns:

getCommitterName

@NotNull
public java.lang.String getCommitterName(@Nullable
                                                 Repository repository)
Description copied from interface: BranchIntegrationHelper
Get name of committer used for branch integration operations.

Specified by:
getCommitterName in interface BranchIntegrationHelper
Returns:

getAuthorEmail

@NotNull
public java.lang.String getAuthorEmail(@Nullable
                                               Repository repository)
Description copied from interface: BranchIntegrationHelper
Get email of author used for branch integration operations.

Specified by:
getAuthorEmail in interface BranchIntegrationHelper
Returns:

getCommitterEmail

@NotNull
public java.lang.String getCommitterEmail(@Nullable
                                                  Repository repository)
Description copied from interface: BranchIntegrationHelper
Get email of committer used for branch integration operations.

Specified by:
getCommitterEmail in interface BranchIntegrationHelper
Returns:

getIntegrationCommitMessage

public java.lang.String getIntegrationCommitMessage(@Nullable
                                                    Repository repository)
Description copied from interface: BranchIntegrationHelper
Get commit message used for branch integration operations.

Specified by:
getIntegrationCommitMessage in interface BranchIntegrationHelper
Returns:

merge

@NotNull
public MergeResult merge(@NotNull
                                 BuildContext buildContext,
                                 @NotNull
                                 java.io.File mergeDirectory,
                                 @Nullable
                                 BuildLogger logger)
                  throws RepositoryException
Description copied from interface: BranchIntegrationHelper
Perform branch merging according to Integration Configuration

Specified by:
merge in interface BranchIntegrationHelper
Returns:
Throws:
RepositoryException

getIntegrationRepository

@NotNull
public BranchMergingAwareRepository getIntegrationRepository(@NotNull
                                                                     BuildContext buildContext)
Get integration repository narrowed to BranchMergingAwareRepository

Specified by:
getIntegrationRepository in interface BranchIntegrationHelper
Parameters:
buildContext -
Returns:

getDefaultRepository

protected BranchMergingAwareRepository getDefaultRepository(@NotNull
                                                            BuildContext buildContext)
Get default repository narrowed to BranchMergingAwareRepository

Parameters:
buildContext -
Returns:
default repository

toBuildLogger

@NotNull
protected java.lang.String toBuildLogger(@Nullable
                                                 BuildLogger logger,
                                                 @NotNull
                                                 java.lang.String msg)


Copyright © 2012 Atlassian. All Rights Reserved.