fr.ifremer.wao.ui.data
Interface ImportEngine


public interface ImportEngine

This interface is used for CsvImport component to execute an import. The page need to implement the execute(InputStream) method to use the component. Created: 18 juin 2010

Version:
$Id$
Author:
fdesbois

Method Summary
 ImportResults execute(InputStream input)
          Excute an import from an input stream.
 

Method Detail

execute

ImportResults execute(InputStream input)
                      throws WaoException,
                             WaoBusinessException
Excute an import from an input stream. This method was called in CsvImport when file are successfully uploaded. This method to to return an ImportResults that contains stats and errors from import.

Parameters:
input - InputStream of the file to import
Returns:
an ImportResults that contains statistics and errors from import
Throws:
WaoException - for unknown errors
WaoBusinessException - for known errors


Copyright © 2009-2010 Ifremer. All Rights Reserved.