FilterSet

public class FilterSet extends TaskConfigStep

Represents a set of Filters. Those are conditions that task must meet before being executed. If the conditions are not met the task execution will be stopped. Joining those conditions can be done by using logical “and” or logical “or” as an operator and can be set by setOperator(LogicalOperator) method.

Constructors

FilterSet

public FilterSet()

Constructor.

FilterSet

public FilterSet(FilterSetDto dto)

Constructor.

Parameters:
  • dto – FilterSet data transfer object

FilterSet

public FilterSet(List<Filter> filters)

Constructor. The operator will be set to “AND”.

Parameters:
  • filters – the filters

FilterSet

public FilterSet(List<Filter> filters, LogicalOperator operator, Integer actionFilterOrder)

Constructor.

Parameters:
  • filters – the filters
  • operator – the operator, can be “AND” or “OR
  • actionFilterOrder – represents order between Actions and Action Filters

FilterSet

public FilterSet(List<Filter> filters, LogicalOperator operator, Integer order, Integer actionFilterOrder)

Methods

addFilter

public void addFilter(Filter filter)

equals

public boolean equals(Object obj)

getActionFilterOrder

public Integer getActionFilterOrder()

getFilters

public List<Filter> getFilters()

getOperator

public LogicalOperator getOperator()

hashCode

public int hashCode()

setActionFilterOrder

public void setActionFilterOrder(Integer actionOrder)

setFilters

public void setFilters(List<Filter> filters)

setOperator

public void setOperator(LogicalOperator operator)

toDto

public FilterSetDto toDto()

toString

public String toString()