public interface ImportService
| Modifier and Type | Method and Description |
|---|---|
void |
doImportItems(Collection<Importable> importables,
String siteId)
Put the parsed items into a site.
|
boolean |
isValidArchive(ResetOnCloseInputStream archiveFileData)
Check the validity of the file data passed.
|
ImportDataSource |
parseFromFile(ResetOnCloseInputStream archiveFileData)
Parse the archive file data and create an Import Data Source object containing the results.
|
boolean isValidArchive(ResetOnCloseInputStream archiveFileData)
archiveFileData - is an input stream of data gathered from an archive file or package.ResetOnCloseInputStreamImportDataSource parseFromFile(ResetOnCloseInputStream archiveFileData)
archiveFileData - is an input stream of data gathered from an archive file or package.ResetOnCloseInputStreamvoid doImportItems(Collection<Importable> importables, String siteId)
importables - a collection of importable things to import.siteId - is the the id of the site to import to.Copyright © 2003–2021 Sakai Project. All rights reserved.