org.hardtokenmgmt.admin.control
Interface IBatchAdminImportFileParser

All Known Implementing Classes:
CSVBatchAdminImportFileParser

public interface IBatchAdminImportFileParser

Interface all AdminDataVO batch import parser should implement.

Version:
$Id$
Author:
Philip Vendil 15 mar 2009

Method Summary
 boolean hasMore()
           
 void init(java.lang.String orgId)
          Initialization method that should be called before any users are parsed form the data.
 AdminDataVO next()
          Fetches the next available AdminDataVO from the file.
 

Method Detail

init

void init(java.lang.String orgId)
Initialization method that should be called before any users are parsed form the data.

Parameters:
orgId - organization id of organization to import users to.

hasMore

boolean hasMore()
Returns:
true if file have more AdminDataVO to return.

next

AdminDataVO next()
                 throws java.text.ParseException
Fetches the next available AdminDataVO from the file.

Returns:
the next AdminDataVO
Throws:
java.text.ParseException - if the row in the import was invalid and couldn't be parsed properly.