CodeOwnerResolver: Split methods to lookup and check accounts

CodeOwnerResolver consists out of several steps to resolve code owner
emails to code owner accounts. At the moment we iterate over the code
owner emails and then execute these steps for each of the emails. Going
forward we want to refactor this so that all emails are processed at
once (so that each of the steps is executed only once, but with all
emails). For this most of the steps will be converted into operations on
a stream, e.g. the methods will filter the stream or map entries in the
stream.

To make this refactoring easier, this change splits the existing methods
that lookup accounts and check their visibility into smaller steps that
will become stream operations later.

The methods are sorted in the order in which the steps are invoked.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: If8e6686ebe4bd144c66d471739a9a39a72115a94
1 file changed
tree: 242fe63dcf95e5a46cf4bc611a3e89ccb86ffbec
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

Gerrit Code Review code-owners plugin

This plugin provides support for defining code owners for files in a repository.

If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.

Also see resources/Documentation/about.md.

IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md.