Skip to content

Commit

Permalink
io :: updated AbstractFilter to use denylist (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb authored Dec 12, 2023
1 parent 244e740 commit 0316a3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/emissary/output/filter/AbstractFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public abstract class AbstractFilter implements IDropOffFilter {
public static final String METADATA_VIEW = "." + METADATA_VIEW_NAME;

/* alternate views to NOT output if only a file type/form is specified */
protected Set<String> blacklist = Collections.emptySet();
protected Set<String> denylist = Collections.emptySet();

protected DropOffUtil dropOffUtil = null;

Expand Down Expand Up @@ -167,8 +167,8 @@ protected void initializeOutputTypes(@Nullable final Configurator config) {
if (config != null) {
this.outputTypes = config.findEntriesAsSet("OUTPUT_TYPE");
this.logger.debug("Loaded {} output types for filter {}", this.outputTypes.size(), this.outputTypes);
this.blacklist = config.findEntriesAsSet("BLACKLIST");
this.logger.debug("Loaded {} blacklist types for filter {}", this.blacklist.size(), this.blacklist);
this.denylist = config.findEntriesAsSet("DENYLIST");
this.logger.debug("Loaded {} ignorelist types for filter {}", this.denylist.size(), this.denylist);
} else {
this.logger.debug("InitializeCustom has null filter config");
}
Expand Down Expand Up @@ -445,8 +445,8 @@ protected Set<String> getTypesToCheckForNamedView(final IBaseDataObject d, final
final String fileType = DropOffUtil.getFileType(d);
final String currentForm = d.currentForm();

// skip over blacklisted alt views
if (this.blacklist.contains(viewName) || this.blacklist.contains(fileType + "." + viewName)) {
// skip over denylisted alt views
if (this.denylist.contains(viewName) || this.denylist.contains(fileType + "." + viewName)) {
return checkTypes;
}

Expand Down

0 comments on commit 0316a3a

Please sign in to comment.