Package com.atlassian.bamboo.plan.branch
Interface BranchCommitInformationManager
- All Known Implementing Classes:
BranchCommitInformationManagerImpl
public interface BranchCommitInformationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Initialises the commit information if the branch doesn't have aBranchCommitInformation
attached to itvoid
save
(@NotNull BranchCommitInformation branchCommitInformation) SavesBranchCommitInformation
updateCreatingCommitInformation
(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext) Creates newBranchCommitInformation
copying the information from the source and then updating creating commit with providedCommitContext
.updateLatestCommitInformation
(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext) Creates newBranchCommitInformation
copying the information from the source and then updating latest commit with providedCommitContext
.
-
Method Details
-
initialiseCommitInformation
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
SavesBranchCommitInformation
- Parameters:
branchCommitInformation
-
-