criteria.addFilterResourceTypeId(context.resourceTypeId);
CriteriaQueryGenerator generator = new CriteriaQueryGenerator(subject, criteria);
CriteriaQueryRunner<MeasurementDefinition> queryRunner = new CriteriaQueryRunner(criteria, generator,
entityManager);
definitions = queryRunner.execute();
for (MeasurementDefinition definition : definitions) {
definitionIntervalMap.put(definition.getId(), definition.getDefaultInterval());
definitionEnabledMap.put(definition.getId(), definition.isDefaultOn());
}
} else {