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
ConstructorsConstructorDescriptionBranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService, JiraBranchLinkingService jiraBranchLinkingService, VcsRepositoryManager vcsRepositoryManager) -
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.
-
Constructor Details
-
BranchCommitInformationManagerImpl
public BranchCommitInformationManagerImpl(BranchCommitInformationDao branchCommitInformationDao, ExtendedAuthorManager extendedAuthorManager, AuthorCreatorService authorCreatorService, JiraBranchLinkingService jiraBranchLinkingService, VcsRepositoryManager vcsRepositoryManager)
-
-
Method Details
-
initialiseCommitInformation
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
Description copied from interface:BranchCommitInformationManagerSavesBranchCommitInformation- Specified by:
savein interfaceBranchCommitInformationManager
-