use of com.thinkbiganalytics.nifi.rest.model.NiFiComponentErrors in project kylo by Teradata.
the class NifiProcessorValidationUtil method getProcessorValidationErrors.
public static List<NiFiComponentErrors> getProcessorValidationErrors(ProcessGroupDTO group) {
List<NiFiComponentErrors> errors = new ArrayList<>();
errors.addAll(getProcessorValidationErrors(group.getContents().getProcessors()));
if (group.getContents().getProcessGroups() != null) {
for (ProcessGroupDTO groupDTO : group.getContents().getProcessGroups()) {
errors.addAll(getProcessorValidationErrors(groupDTO));
}
}
return errors;
}
use of com.thinkbiganalytics.nifi.rest.model.NiFiComponentErrors in project kylo by Teradata.
the class NifiProcessorValidationUtil method getProcessorValidationErrors.
public static NiFiComponentErrors getProcessorValidationErrors(ProcessorDTO dto, boolean ignoreDisabled) {
if (!ignoreDisabled || (ignoreDisabled && (!NifiProcessUtil.PROCESS_STATE.DISABLED.name().equalsIgnoreCase(dto.getState()))) && dto.getValidationErrors() != null) {
NiFiComponentErrors processorDTO = new NiFiComponentErrors(dto.getName(), dto.getId(), dto.getParentGroupId());
processorDTO.addValidationErrors(dto.getValidationErrors());
return processorDTO;
}
return null;
}
use of com.thinkbiganalytics.nifi.rest.model.NiFiComponentErrors in project kylo by Teradata.
the class NifiProcessorValidationUtil method getValidationErrors.
public static List<NifiError> getValidationErrors(ProcessGroupDTO group) {
List<NiFiComponentErrors> processorValidationErrors = getProcessorValidationErrors(group);
List<NifiError> errors = new ArrayList<>();
for (NiFiComponentErrors dto : processorValidationErrors) {
errors.addAll(dto.getValidationErrors());
}
return errors;
}
Aggregations