1 package org.kuali.ole.sys.batch;
2
3 /**
4 * The interface for a FlatFileDataValidator. Implementations will have code which validates the parsed contents of the flat file.
5 */
6 public interface FlatFileDataHandler {
7
8 /**
9 * Performs specific validation on the parsed file contents. If errors were found, method will return false and
10 * GlobalVariables.errorMap will contain the error message. If no errors were encountered the method will return true.
11 *
12 * @param parsedFileContents - object populated with the uploaded file contents
13 */
14 public abstract boolean validate(Object parsedFileContents);
15
16 /**
17 * Invokes optional processing of file after validation
18 *
19 * @param fileName name of the file
20 * @param parsedFileContents objects populated with file contents
21 */
22 public abstract void process(String fileName, Object parsedFileContents);
23
24 /**
25 * Returns the name of an uploaded file.
26 */
27 public String getFileName(String principalName, Object parsedFileContents, String fileUserIdentifier) ;
28
29
30 }