Class NoopFetcher<T>

java.lang.Object
com.atlassian.confluence.impl.service.finder.NoopFetcher<T>
All Implemented Interfaces:
ManyFetcher<T>, SingleFetcher<T>
Direct Known Subclasses:
NoopContentFinder, NoopGroupFinder, NoopPersonFinder, NoopPersonSearcher, NoopSpaceFinder

public class NoopFetcher<T> extends Object implements SingleFetcher<T>, ManyFetcher<T>
A Fetcher that always returns nothing
Since:
6.13.6, 6.14.4, 6.15.4
  • Constructor Details

    • NoopFetcher

      public NoopFetcher()
  • Method Details

    • fetchMany

      public PageResponse<T> fetchMany(PageRequest request)
      Specified by:
      fetchMany in interface ManyFetcher<T>
      Parameters:
      request - - a pageRequest to use to paginate the response, this will be limited if it exceeds system limits
      Returns:
      a pageResponse of given type that matches the given restrictions
    • fetch

      public Optional<T> fetch()
      Specified by:
      fetch in interface SingleFetcher<T>