use of com.qcadoo.mes.cmmsMachineParts.plannedEvents.fieldsForType.FieldsForType in project mes by qcadoo.
the class PlannedEventStateValidationService method fieldIsNotHidden.
private boolean fieldIsNotHidden(Entity plannedEvent, String fieldName) {
PlannedEventType type = PlannedEventType.from(plannedEvent);
FieldsForType fieldsForType = eventFieldsForTypeFactory.createFieldsForType(type);
return !fieldsForType.getHiddenFields().contains(fieldName);
}
Aggregations