use of edu.cornell.kfs.concur.batch.report.ConcurBatchReportLineValidationErrorItem in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountingExtractValidationServiceImpl method validateReportId.
private boolean validateReportId(ConcurStandardAccountingExtractDetailLine line, ConcurStandardAccountingExtractBatchReportData reportData) {
boolean valid = StringUtils.isNotBlank(line.getReportId());
if (valid) {
LOG.debug("validateReportId, found a valid report ID: " + line.getReportId());
} else {
String validationError = "No valid report ID.";
reportData.addValidationErrorFileLine(new ConcurBatchReportLineValidationErrorItem(line, validationError));
LOG.error("validateReportId, " + validationError);
}
return valid;
}
use of edu.cornell.kfs.concur.batch.report.ConcurBatchReportLineValidationErrorItem in project cu-kfs by CU-CommunityApps.
the class ConcurReportEmailServiceImplTest method addLineErrorToReportData.
private void addLineErrorToReportData() {
ConcurBatchReportLineValidationErrorItem item = new ConcurBatchReportLineValidationErrorItem();
reportData.getValidationErrorFileLines().add(item);
}
Aggregations