Filter

public class Filter implements Serializable

Represents a single filter. A filter is a part of the FilterSet and represents a single condition that task must meet before being executed. If that condition is not met the task execution will be stopped. It is an optional part of a task.

Constructors

Filter

public Filter()

Constructor.

Filter

public Filter(FilterDto dto)

Constructor.

Parameters:
  • dto – Filter data transfer object

Filter

public Filter(String displayName, String key, ParameterType type, boolean negationOperator, String operator, String expression, List<String> manipulations)

Constructor.

Parameters:
  • displayName – the filter display name
  • key – the filter key
  • type – the filter type
  • negationOperator – defines if the represented operator should be negated
  • operator – the filter operator
  • expression – the filter exception

Methods

equals

public boolean equals(Object obj)

getDisplayName

public String getDisplayName()

getExpression

public String getExpression()

getKey

public String getKey()

getManipulations

public List<String> getManipulations()

getOperator

public String getOperator()

getType

public ParameterType getType()

hashCode

public int hashCode()

isNegationOperator

public boolean isNegationOperator()

setDisplayName

public void setDisplayName(String displayName)

setExpression

public void setExpression(String expression)

setKey

public void setKey(String key)

setManipulations

public void setManipulations(List<String> manipulations)

setNegationOperator

public void setNegationOperator(boolean negationOperator)

setOperator

public void setOperator(String operator)

setType

public void setType(ParameterType type)

toDto

public FilterDto toDto()

toFilters

public static List<Filter> toFilters(List<FilterDto> filterDtos)

toString

public String toString()