Package com.atlassian.bamboo.plan.branch
Interface BranchCommitInformationManager
- All Known Implementing Classes:
BranchCommitInformationManagerImpl
public interface BranchCommitInformationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidInitialises the commit information if the branch doesn't have aBranchCommitInformationattached to itvoidsave(@NotNull BranchCommitInformation branchCommitInformation) SavesBranchCommitInformationupdateCreatingCommitInformation(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext) Creates newBranchCommitInformationcopying the information from the source and then updating creating commit with providedCommitContext.updateLatestCommitInformation(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext) Creates newBranchCommitInformationcopying 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 aBranchCommitInformationattached to it- Parameters:
branch-- Throws:
RepositoryException
-
updateCreatingCommitInformation
BranchCommitInformation updateCreatingCommitInformation(@NotNull @NotNull BranchCommitInformation source, @NotNull @NotNull CommitContext commitContext) Creates newBranchCommitInformationcopying 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 newBranchCommitInformationcopying 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-
-