com.atlassian.bamboo.plan.branch
Interface BranchCommitInformationManager

All Known Implementing Classes:
BranchCommitInformationManagerImpl

public interface BranchCommitInformationManager


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.
 

Method Detail

initialiseCommitInformation

void initialiseCommitInformation(ImmutableChainBranch branch)
                                 throws RepositoryException
Initialises the commit information if the branch doesn't have a BranchCommitInformation attached to it

Parameters:
branch -
Throws:
RepositoryException

updateCreatingCommitInformation

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

Parameters:
source -
commitContext -
Returns:
update BranchCommitInformation

updateLatestCommitInformation

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

Parameters:
source -
commitContext -
Returns:
updated BranchCommitInformation

save

void save(@NotNull
          BranchCommitInformation branchCommitInformation)
Saves BranchCommitInformation

Parameters:
branchCommitInformation -


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.