public interface

CommitEnricher

com.atlassian.stash.commit.CommitEnricher

Summary

Public Methods
@Nonnull Commit enrich(Repository repository, Commit commit, Collection<String> propertyKeys)
@Deprecated @Nonnull Iterable<Changeset> enrich(Repository repository, Iterable<Changeset> commits, Collection<String> propertyKeys)
This method is deprecated. in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use enrichAll(Repository, Iterable, Collection) instead.
@Deprecated @Nonnull Page<Changeset> enrich(Repository repository, Page<Changeset> page, Collection<String> propertyKeys)
This method is deprecated. in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use enrichPage(Repository, Page, Collection) instead.
@Deprecated @Nonnull Changeset enrich(Repository repository, Changeset commit, Collection<String> propertyKeys)
This method is deprecated. in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use enrich(Repository, Commit, Collection) instead.
@Nonnull Iterable<Commit> enrichAll(Repository repository, Iterable<Commit> commits, Collection<String> propertyKeys)
@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

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

This method is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use enrichAll(Repository, Iterable, 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

@Deprecated @Nonnull public Page<Changeset> enrich (Repository repository, Page<Changeset> page, Collection<String> propertyKeys)

This method is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use enrichPage(Repository, Page, Collection) instead.

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

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

This method is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use enrich(Repository, Commit, Collection) instead.

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 public Iterable<Commit> enrichAll (Repository repository, Iterable<Commit> commits, Collection<String> propertyKeys)

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