Package com.atlassian.bamboo.plan.branch
Interface BranchCommitInformationManager
-
- All Known Implementing Classes:
BranchCommitInformationManagerImpl
public interface BranchCommitInformationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialiseCommitInformation(ImmutableChainBranch branch)
Initialises the commit information if the branch doesn't have aBranchCommitInformation
attached to itvoid
save(@NotNull BranchCommitInformation branchCommitInformation)
SavesBranchCommitInformation
BranchCommitInformation
updateCreatingCommitInformation(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext)
Creates newBranchCommitInformation
copying the information from the source and then updating creating commit with providedCommitContext
.BranchCommitInformation
updateLatestCommitInformation(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext)
Creates newBranchCommitInformation
copying the information from the source and then updating latest commit with providedCommitContext
.
-
-
-
Method Detail
-
initialiseCommitInformation
void initialiseCommitInformation(ImmutableChainBranch branch) throws RepositoryException
Initialises the commit information if the branch doesn't have aBranchCommitInformation
attached to it- Parameters:
branch
-- Throws:
RepositoryException
-
updateCreatingCommitInformation
BranchCommitInformation updateCreatingCommitInformation(@NotNull @NotNull BranchCommitInformation source, @NotNull @NotNull CommitContext commitContext)
Creates newBranchCommitInformation
copying the information from the source and then updating creating commit with providedCommitContext
. Doesn't save to the DB.- Parameters:
source
-commitContext
-- Returns:
- update
BranchCommitInformation
-
updateLatestCommitInformation
BranchCommitInformation updateLatestCommitInformation(@NotNull @NotNull BranchCommitInformation source, @NotNull @NotNull CommitContext commitContext)
Creates newBranchCommitInformation
copying the information from the source and then updating latest commit with providedCommitContext
. Doesn't save to the DB.- Parameters:
source
-commitContext
-- Returns:
- updated
BranchCommitInformation
-
save
void save(@NotNull @NotNull BranchCommitInformation branchCommitInformation)
SavesBranchCommitInformation
- Parameters:
branchCommitInformation
-
-
-