org.sakaiproject.importer.api
Interface ImportService


public interface ImportService

The ImportService provides a top level framework to handled import data collected from a content package or other archive.


Method Summary
 void doImportItems(Collection importables, String siteId)
          doImportItems
 boolean isValidArchive(byte[] archiveFileData)
          Check the validity of the file data passed.
 ImportDataSource parseFromFile(byte[] archiveFileData)
          Parse the archive file data and create an Import Data Source object containing the results.
 

Method Detail

isValidArchive

boolean isValidArchive(byte[] archiveFileData)
Check the validity of the file data passed.

Parameters:
archiveFileData - is a byte array of data gathered from an archive file or package.
Returns:
true if file data is valid.

parseFromFile

ImportDataSource parseFromFile(byte[] archiveFileData)
Parse the archive file data and create an Import Data Source object containing the results.

Parameters:
archiveFileData - is a byte array of data gathered from an archive file or package.
Returns:
ImportDataSource containing parsing results.

doImportItems

void doImportItems(Collection importables,
                   String siteId)
doImportItems

Parameters:
importable - a collection of things to import (?)
siteId - is the the id of the site to import to.


Copyright © 2003-2012 Sakai Foundation. All Rights Reserved.