Class ChangeFinder

java.lang.Object
com.google.gerrit.server.change.ChangeFinder

public class ChangeFinder extends Object
  • Method Details

    • module

      public static com.google.inject.Module module()
    • findOne

      public Optional<ChangeNotes> findOne(String id)
    • find

      public List<ChangeNotes> find(String id)
      Find changes matching the given identifier.
      Parameters:
      id - change identifier.
      Returns:
      possibly-empty list of notes for all matching changes; may or may not be visible.
    • find

      public List<ChangeNotes> find(String id, int queryLimit)
      Find at most N changes matching the given identifier.
      Parameters:
      id - change identifier.
      queryLimit - maximum number of changes to be returned
      Returns:
      possibly-empty list of notes for all matching changes; may or may not be visible.
    • findOne

      public Optional<ChangeNotes> findOne(Change.Id id)
    • find

      @Deprecated(since="3.10", forRemoval=true) public List<ChangeNotes> find(Change.Id id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      this method is not reliable in Gerrit instances with imported changes, since multiple changes can have the same change number and make the `changeIdProjectCache` cache pointless.