Package org.graylog.security.entities
Class EntityDependencyPermissionChecker
java.lang.Object
org.graylog.security.entities.EntityDependencyPermissionChecker
-
Constructor Summary
ConstructorDescriptionEntityDependencyPermissionChecker
(GranteeAuthorizer.Factory granteeAuthorizerFactory, BuiltinCapabilities builtinCapabilities) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMultimap<GRN,
EntityDescriptor> check
(GRN sharingUser, com.google.common.collect.ImmutableSet<EntityDescriptor> dependencies, Set<GRN> selectedGrantees) Runs permission checks for the given dependencies for every selected grantee and returns the entities that grantees cannot access.
-
Constructor Details
-
EntityDependencyPermissionChecker
@Inject public EntityDependencyPermissionChecker(GranteeAuthorizer.Factory granteeAuthorizerFactory, BuiltinCapabilities builtinCapabilities)
-
-
Method Details
-
check
public com.google.common.collect.ImmutableMultimap<GRN,EntityDescriptor> check(GRN sharingUser, com.google.common.collect.ImmutableSet<EntityDescriptor> dependencies, Set<GRN> selectedGrantees) Runs permission checks for the given dependencies for every selected grantee and returns the entities that grantees cannot access.- Parameters:
sharingUser
- the sharing userdependencies
- the dependencies to checkselectedGrantees
- the selected grantees- Returns:
- dependencies that grantees cannot access, grouped by grantee
-