Class Consoles.ConsoleFilter

    • Constructor Detail

      • ConsoleFilter

        public ConsoleFilter​(@NotNull
                             @NotNull BeanContext context,
                             String... selectors)
    • Method Detail

      • accept

        public boolean accept​(@Nullable
                              @Nullable org.apache.sling.api.resource.Resource resource)
        Description copied from interface: ResourceFilter
        the core function of a filters says: this resource is appropriate or not
        Parameters:
        resource - the resource object to check
        Returns:
        'true' if the resource matches
      • isRestriction

        public boolean isRestriction()
        Description copied from interface: ResourceFilter
        "Is a blacklist": this is a hint for ResourceFilter.FilterSets that signals that the filter primary restricts values (is a blacklist) or not (is a whitelist).

        Basic idea: whitelist (restriction = false) is something that matches nothing except specified values, blacklist (restriction = true) is something that matches everything except specified values (restricts the set of everything).

        Returns:
        'true' if this filter excludes objects