Class EntityDependencyPermissionChecker

java.lang.Object
org.graylog.security.entities.EntityDependencyPermissionChecker

public class EntityDependencyPermissionChecker extends Object
  • Constructor Details

  • 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 user
      dependencies - the dependencies to check
      selectedGrantees - the selected grantees
      Returns:
      dependencies that grantees cannot access, grouped by grantee