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

public class UserStreams extends Object
  • Constructor Details

  • Method Details

    • loadAll

      public com.google.common.collect.ImmutableSet<String> loadAll()
    • 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)