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 java.lang.Object
implements BranchCommitInformationManager


Constructor Summary
BranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService)
           
 
Method Summary
 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)
Method Detail

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 © 2012 Atlassian. All Rights Reserved.