Package com.atlassian.bamboo.plan.branch
Class BranchCommitInformationManagerImpl
java.lang.Object
com.atlassian.bamboo.plan.branch.BranchCommitInformationManagerImpl
- All Implemented Interfaces:
BranchCommitInformationManager
public class BranchCommitInformationManagerImpl
extends Object
implements BranchCommitInformationManager
-
Constructor Summary
ConstructorDescriptionBranchCommitInformationManagerImpl
(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService, JiraBranchLinkingService jiraBranchLinkingService, VcsRepositoryManager vcsRepositoryManager) -
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
.
-
Constructor Details
-
BranchCommitInformationManagerImpl
public BranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService, JiraBranchLinkingService jiraBranchLinkingService, VcsRepositoryManager vcsRepositoryManager)
-
-
Method Details
-
initialiseCommitInformation
Description copied from interface:BranchCommitInformationManager
Initialises the commit information if the branch doesn't have aBranchCommitInformation
attached to it- Specified by:
initialiseCommitInformation
in interfaceBranchCommitInformationManager
- Throws:
RepositoryException
-
updateCreatingCommitInformation
public BranchCommitInformation updateCreatingCommitInformation(@NotNull @NotNull BranchCommitInformation source, @NotNull @NotNull CommitContext commitContext) Description copied from interface:BranchCommitInformationManager
Creates newBranchCommitInformation
copying the information from the source and then updating creating commit with providedCommitContext
. Doesn't save to the DB.- Specified by:
updateCreatingCommitInformation
in interfaceBranchCommitInformationManager
- Returns:
- update
BranchCommitInformation
-
updateLatestCommitInformation
public BranchCommitInformation updateLatestCommitInformation(@NotNull @NotNull BranchCommitInformation source, @NotNull @NotNull CommitContext commitContext) Description copied from interface:BranchCommitInformationManager
Creates newBranchCommitInformation
copying the information from the source and then updating latest commit with providedCommitContext
. Doesn't save to the DB.- Specified by:
updateLatestCommitInformation
in interfaceBranchCommitInformationManager
- Returns:
- updated
BranchCommitInformation
-
save
Description copied from interface:BranchCommitInformationManager
SavesBranchCommitInformation
- Specified by:
save
in interfaceBranchCommitInformationManager
-