public interface

CommitEnricher

com.atlassian.bitbucket.commit.CommitEnricher

Summary

Public Methods
@Nonnull Commit enrich(Repository repository, Commit commit, Collection<String> propertyKeys)
@Nonnull @Deprecated Iterable<Commit> enrichAll(Repository repository, Iterable<Commit> commits, Collection<String> propertyKeys)
This method is deprecated. in 4.8 for removal in 5.0. Use enrichPage(Repository, Page, Collection) instead.
@Nonnull Page<Commit> enrichPage(Repository repository, Page<Commit> page, Collection<String> propertyKeys)

Public Methods

@Nonnull public Commit enrich (Repository repository, Commit commit, Collection<String> propertyKeys)

Parameters
repository the repository the commit was retrieved from
commit the commit to enrich
propertyKeys keys for CommitIndex properties to load
Returns
  • the enriched commit

@Nonnull @Deprecated public Iterable<Commit> enrichAll (Repository repository, Iterable<Commit> commits, Collection<String> propertyKeys)

This method is deprecated.
in 4.8 for removal in 5.0. Use enrichPage(Repository, Page, Collection) instead.

Parameters
repository the repository the commits were retrieved from
commits the commits to enrich
propertyKeys keys for CommitIndex properties to load
Returns
  • the enriched commits

@Nonnull public Page<Commit> enrichPage (Repository repository, Page<Commit> page, Collection<String> propertyKeys)

Parameters
repository the repository the commits were retrieved from
page the page of commits to enrich
propertyKeys keys for CommitIndex properties to load
Returns
  • a page of enriched commits