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
Constructors Constructor Description BranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService, JiraBranchLinkingService jiraBranchLinkingService, VcsRepositoryManager vcsRepositoryManager)
-
Method Summary
All Methods Instance Methods Concrete 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
.
-
-
-
Constructor Detail
-
BranchCommitInformationManagerImpl
public BranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService, JiraBranchLinkingService jiraBranchLinkingService, VcsRepositoryManager vcsRepositoryManager)
-
-
Method Detail
-
initialiseCommitInformation
public void initialiseCommitInformation(ImmutableChainBranch branch) throws RepositoryException
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
public void save(@NotNull @NotNull BranchCommitInformation branchCommitInformation)
Description copied from interface:BranchCommitInformationManager
SavesBranchCommitInformation
- Specified by:
save
in interfaceBranchCommitInformationManager
-
-