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 voidinitialiseCommitInformation(ImmutableChainBranch branch)Initialises the commit information if the branch doesn't have aBranchCommitInformationattached to itvoidsave(@NotNull BranchCommitInformation branchCommitInformation)SavesBranchCommitInformationBranchCommitInformationupdateCreatingCommitInformation(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext)Creates newBranchCommitInformationcopying the information from the source and then updating creating commit with providedCommitContext.BranchCommitInformationupdateLatestCommitInformation(@NotNull BranchCommitInformation source, @NotNull CommitContext commitContext)Creates newBranchCommitInformationcopying 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:BranchCommitInformationManagerInitialises the commit information if the branch doesn't have aBranchCommitInformationattached to it- Specified by:
initialiseCommitInformationin interfaceBranchCommitInformationManager- Throws:
RepositoryException
-
updateCreatingCommitInformation
public BranchCommitInformation updateCreatingCommitInformation(@NotNull @NotNull BranchCommitInformation source, @NotNull @NotNull CommitContext commitContext)
Description copied from interface:BranchCommitInformationManagerCreates newBranchCommitInformationcopying the information from the source and then updating creating commit with providedCommitContext. Doesn't save to the DB.- Specified by:
updateCreatingCommitInformationin interfaceBranchCommitInformationManager- Returns:
- update
BranchCommitInformation
-
updateLatestCommitInformation
public BranchCommitInformation updateLatestCommitInformation(@NotNull @NotNull BranchCommitInformation source, @NotNull @NotNull CommitContext commitContext)
Description copied from interface:BranchCommitInformationManagerCreates newBranchCommitInformationcopying the information from the source and then updating latest commit with providedCommitContext. Doesn't save to the DB.- Specified by:
updateLatestCommitInformationin interfaceBranchCommitInformationManager- Returns:
- updated
BranchCommitInformation
-
save
public void save(@NotNull @NotNull BranchCommitInformation branchCommitInformation)Description copied from interface:BranchCommitInformationManagerSavesBranchCommitInformation- Specified by:
savein interfaceBranchCommitInformationManager
-
-