code: 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;
      }
docs: Get the {@link AccessLevel} for the user who want's to get access to the path
  inside the given repository.
  
  @param user The user who will be checked against the permission rules.
  @param repository The repository to which the user tries to get access.
  @param path The path within the repository.
  @return AccessLevel of the user within the given path and repository.