Package com.atlassian.bitbucket.commit
Interface CommitEnricher
public interface CommitEnricher
-
Method Summary
Modifier and TypeMethodDescriptionenrich
(Repository repository, Commit commit, Collection<String> propertyKeys) enrichPage
(Repository repository, Page<Commit> page, Collection<String> propertyKeys)
-
Method Details
-
enrich
@Nonnull Commit enrich(@Nonnull Repository repository, @Nonnull Commit commit, @Nullable Collection<String> propertyKeys) - Parameters:
repository
- the repository thecommit
was retrieved fromcommit
- the commit to enrichpropertyKeys
- keys forCommitIndex
properties to load- Returns:
- the enriched commit
-
enrichPage
@Nonnull Page<Commit> enrichPage(@Nonnull Repository repository, @Nonnull Page<Commit> page, @Nullable Collection<String> propertyKeys) - Parameters:
repository
- the repository thecommits
were retrieved frompage
- the page of commits to enrichpropertyKeys
- keys forCommitIndex
properties to load- Returns:
- a page of enriched commits
-