Class UserStreams
java.lang.Object
org.graylog.plugins.views.search.permissions.UserStreams
-
Constructor Summary
ConstructorDescriptionUserStreams
(StreamPermissions streamPermissions, PermittedStreams permittedStreams) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<String>
loadAll()
com.google.common.collect.ImmutableSet<String>
readableOrAllIfEmpty
(Optional<Set<String>> requestedStreams) com.google.common.collect.ImmutableSet<String>
readableOrAllIfEmpty
(Set<String> requestedStreams) If any stream IDs are provided, they will be filtered out by read permission.
-
Constructor Details
-
UserStreams
-
-
Method Details
-
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
-