@Override public boolean isSatisfiedBy(Resource resource, LocalDate atThisDate) { return !resource.query().from(this).enforcedInAll( Interval.point(atThisDate)).result().isEmpty(); }
public static ArrayList<Resource> query(Query query) throws ConnectionDisabledException { return Resource.query(query, Location.RESOURCE, Location.TABLE); }
@Override public boolean isSatisfiedBy(Resource resource, LocalDate start, LocalDate end) { return !resource.query().from(this).enforcedInAll( Interval.range(start, end)).result().isEmpty(); }