MetadataCriterion

public class MetadataCriterion implements Criterion

Criterion used to filter enrollments by metadata. If the enrollment have got a given key-value entry in their metadata then this criterion is met.

Constructors

MetadataCriterion

public MetadataCriterion(String key, String value)

Creates a MetadataCriterion with the key attribute set to key, the value attribute to value.

Parameters:
  • key – the metadata key
  • value – the metadata value

Methods

fetch

public List<Enrollment> fetch(AllEnrollments allEnrollments)

filter

public List<Enrollment> filter(List<Enrollment> enrollments)