Interface RestrictedUsersComponent

All Known Implementing Classes:
DefaultRestrictedUsersComponent

@ExperimentalApi public interface RestrictedUsersComponent
Component for operating on the defined restricted users.
Since:
9.0.0
  • Method Details

    • isUserRestricted

      boolean isUserRestricted(@Nullable ApplicationUser user)
      Checks if the passed user should be restricted.
      Parameters:
      user - application user to be checked. If null user passed, false is returned.
      Returns:
      true if user belongs should be restricted, otherwise false.
    • getConfiguredRestrictedGroups

      Set<String> getConfiguredRestrictedGroups()
      Extracts the restricted groups defined in Safeguards configuration.
      Returns:
      set of restricted groups