org.kuali.kfs.module.ar.batch.service
Interface CustomerLoadService

All Known Implementing Classes:
CustomerLoadServiceImpl

public interface CustomerLoadService


Method Summary
 boolean loadFile(String fileName)
          Validates and parses the file identified by the given files name.
 boolean loadFiles()
          Validates and parses all files ready to go in the batch staging area.
 boolean validate(List<CustomerDigesterVO> customerUploads)
          Performs specific validation on the parsed file contents.
 boolean validateAndPrepare(List<CustomerDigesterVO> customerUploads, List<org.kuali.rice.kns.document.MaintenanceDocument> customerMaintDocs, boolean useGlobalErrorMap)
          Performs specific validation on the parsed file contents.
 

Method Detail

loadFiles

boolean loadFiles()
Validates and parses all files ready to go in the batch staging area.

Returns:

loadFile

boolean loadFile(String fileName)
Validates and parses the file identified by the given files name. If successful, parsed entries are stored.

Parameters:
fileNaem - Name of file to be uploaded and processed.
Returns:
True if the file load and store was successful, false otherwise.

validate

boolean validate(List<CustomerDigesterVO> customerUploads)
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:
customerUploads - A List of CustomerDigesterVO objects, that are the processed results of the uploaded files.
Returns:
True if no errors were encountered, False otherwise.

validateAndPrepare

boolean validateAndPrepare(List<CustomerDigesterVO> customerUploads,
                           List<org.kuali.rice.kns.document.MaintenanceDocument> customerMaintDocs,
                           boolean useGlobalErrorMap)
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:
customerUploads - A List of CustomerDigesterVO objects, that are the processed results of the uploaded files.
customerMaintDocs - A list of the customerMaintDocs that are returned by the validateAndPrepare method. A valid list should be passed in, and MaintDocs will be added to it.
Returns:
True if no errors were encountered, False otherwise.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.