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 Object
implements BranchIntegrationHelper


Constructor Summary
BranchIntegrationHelperImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor)
           
 
Method Summary
 String getAuthorEmail(Repository repository)
          Get email of author used for branch integration operations.
 String getAuthorName(Repository repository)
          Get name of author used for branch integration operations.
 String getCommitterEmail(Repository repository)
          Get email of committer used for branch integration operations.
 String getCommitterName(Repository repository)
          Get name of committer used for branch integration operations.
protected  BranchMergingAwareRepository getDefaultRepository(BuildContext buildContext)
          Get default repository narrowed to BranchMergingAwareRepository
 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, File mergeDirectory, BuildLogger logger)
          Perform branch merging according to Integration Configuration
protected  String toBuildLogger(BuildLogger logger, 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(AdministrationConfigurationAccessor administrationConfigurationAccessor)
Method Detail

getAuthorName

@NotNull
public 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 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 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 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 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
                                 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 String toBuildLogger(@Nullable
                                       BuildLogger logger,
                                       @NotNull
                                       String msg)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.