| org.kuali.kfs.batch.BatchInputFileType
All known Subclasses: org.kuali.kfs.batch.BatchInputFileTypeBase,
BatchInputFileType | public interface BatchInputFileType extends BatchInputType(Code) | | Declares methods that must be implemented for batch input file type classes, which provides functionaliy needed to manage files
of a certain batch type.
|
getDigestorRulesFileName | public String getDigestorRulesFileName()(Code) | | Returns the name with path for the digestor rules file that tells the digestor how to parse files of this type.
|
getDirectoryPath | public String getDirectoryPath()(Code) | | Gives the name of the directory for which batch files of a given type are stored.
|
getFileExtension | public String getFileExtension()(Code) | | Returns file extension for the batch input type.
|
getFileName | public String getFileName(UniversalUser user, Object parsedFileContents, String fileUserIdentifer)(Code) | | Constructs a file name using the name given by the user and file contents if necessary. Returned name should not contain file
extension.
Parameters: user - - user who is uploading the file Parameters: parsedFileContents - - object populated with the uploaded file contents Parameters: fileUserIdentifer - - file identifier given by user through the batch upload UI |
getFileTypeIdentifer | public String getFileTypeIdentifer()(Code) | | Returns the unique identifier (Spring bean id) for the batch input type.
|
getSchemaLocation | public String getSchemaLocation()(Code) | | Returns the schema classpath location for this batch type.
|
validate | public boolean validate(Object parsedFileContents)(Code) | | Performs specific validation on the parsed file contents. If errors were found, method will return false and
GlobalVariables.errorMap will contain the error message. If no errors were encountered the method will return true.
Parameters: parsedFileContents - - object populated with the uploaded file contents |
|
|