docs: public AccessLevel getAccess(String user, String repository, String path) {
          AccessLevel result = AccessLevel.NOTHING;
          if (getRepositoryName() == null) {
              Path localRepositoryPath = new Path(getRepositoryPath());
              if (localRepositoryPath.contains(path)) {
                  result = getAccessForPrincipal(user);
              }
          } else {
              if (getRepositoryName().equals(repository)) {
                  Path localRepositoryPath = new Path(getRepositoryPath());
                  if (localRepositoryPath.contains(path)) {
                      result = getAccessForPrincipal(user);
                  }
              }
          }
  
          return result;
      }