java.lang.Object
org.graylog.plugins.views.search.permissions.UserStreams

public class UserStreams extends Object
  • Constructor Details

  • Method Details

    • loadAllMessageStreams

      public com.google.common.collect.ImmutableSet<String> loadAllMessageStreams()
    • loadAllStreams

      public com.google.common.collect.ImmutableSet<String> loadAllStreams()
    • loadMessageStreamsWithFallback

      public com.google.common.collect.ImmutableSet<String> loadMessageStreamsWithFallback()
    • loadStreamsWithCategories

      public com.google.common.collect.ImmutableSet<String> loadStreamsWithCategories(Set<String> categories)
    • readableOrAllIfEmpty

      public com.google.common.collect.ImmutableSet<String> readableOrAllIfEmpty(@Nullable Set<String> requestedStreams)
      If any stream IDs are provided, they will be filtered out by read permission. If none are given, we'll load all available streams for the current SearchUser
      Parameters:
      requestedStreams - requested stream IDs that should be used in the search
      Returns:
      Filtered and readable stream IDs.
    • readableOrAllIfEmpty

      public com.google.common.collect.ImmutableSet<String> readableOrAllIfEmpty(Optional<Set<String>> requestedStreams)