Class DomainBlacklistService

java.lang.Object
org.eblocker.server.common.blacklist.DomainBlacklistService

public class DomainBlacklistService extends Object
  • Method Details

    • getFilter

      @Nullable public DomainFilter getFilter(@Nonnull Integer id)
    • setFilters

      public void setFilters(@Nonnull Collection<ParentalControlFilterMetaData> blacklists)
      Set the filters for blacklisting. This has four effects:
      • delete old filters marked as deleted (assuming these are not be referenced any more)
      • all filters are created / updated according to the blacklists
      • old versions or non-existing filters are marked as deleted. They can not be deleted right away as they might be in use for some time
      • filters marked as deleted are dropped from cache
    • addListener

      public void addListener(@Nonnull DomainBlacklistService.Listener listener)