com.atlassian.bamboo.plan.branch
Class BranchCommitInformationManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.branch.BranchCommitInformationManagerImpl
All Implemented Interfaces:
BranchCommitInformationManager

public class BranchCommitInformationManagerImpl
extends Object
implements BranchCommitInformationManager


Constructor Summary
BranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService, JiraBranchLinkingService jiraBranchLinkingService)
           
 
Method Summary
 void initialiseCommitInformation(ImmutableChainBranch branch)
          Initialises the commit information if the branch doesn't have a BranchCommitInformation attached to it
 void save(BranchCommitInformation branchCommitInformation)
          Saves BranchCommitInformation
 BranchCommitInformation updateCreatingCommitInformation(BranchCommitInformation source, CommitContext commitContext)
          Creates new BranchCommitInformation copying the information from the source and then updating creating commit with provided CommitContext.
 BranchCommitInformation updateLatestCommitInformation(BranchCommitInformation source, CommitContext commitContext)
          Creates new BranchCommitInformation copying the information from the source and then updating latest commit with provided CommitContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchCommitInformationManagerImpl

public BranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao,
                                          ExtendedAuthorManager extendedAuthorManager,
                                          AuthorCreatorService authorCreatorService,
                                          JiraBranchLinkingService jiraBranchLinkingService)
Method Detail

initialiseCommitInformation

public void initialiseCommitInformation(ImmutableChainBranch branch)
                                 throws RepositoryException
Description copied from interface: BranchCommitInformationManager
Initialises the commit information if the branch doesn't have a BranchCommitInformation attached to it

Specified by:
initialiseCommitInformation in interface BranchCommitInformationManager
Throws:
RepositoryException

updateCreatingCommitInformation

public BranchCommitInformation updateCreatingCommitInformation(@NotNull
                                                               BranchCommitInformation source,
                                                               @NotNull
                                                               CommitContext commitContext)
Description copied from interface: BranchCommitInformationManager
Creates new BranchCommitInformation copying the information from the source and then updating creating commit with provided CommitContext. Doesn't save to the DB.

Specified by:
updateCreatingCommitInformation in interface BranchCommitInformationManager
Returns:
update BranchCommitInformation

updateLatestCommitInformation

public BranchCommitInformation updateLatestCommitInformation(@NotNull
                                                             BranchCommitInformation source,
                                                             @NotNull
                                                             CommitContext commitContext)
Description copied from interface: BranchCommitInformationManager
Creates new BranchCommitInformation copying the information from the source and then updating latest commit with provided CommitContext. Doesn't save to the DB.

Specified by:
updateLatestCommitInformation in interface BranchCommitInformationManager
Returns:
updated BranchCommitInformation

save

public void save(@NotNull
                 BranchCommitInformation branchCommitInformation)
Description copied from interface: BranchCommitInformationManager
Saves BranchCommitInformation

Specified by:
save in interface BranchCommitInformationManager


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