org.sakaiproject.archive.api.ZipAware Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of archive-api Show documentation
Show all versions of archive-api Show documentation
The API for importing content into Sakai. There's
some more information about the design on.
https://confluence.sakaiproject.org/display/PROD/A+Tour+of+Sakai+Import
package org.sakaiproject.archive.api;
import java.io.IOException;
public interface ZipAware {
/**
* Read in an archived set of resources, and merge the entries into the specified site, and set site creator name
* Allows a ZIP file to be used instead of the site archive directory
*
* @param zipFilePath
* The archived site as a zip file
* @param siteId
* The id of the site to merge the content into.
* @param siteCreatorId
* the site creator Id
* @return A log of messages from the merge.
*/
public String mergeZip(String zipFilePath, String siteId, String siteCreatorId);
/**
* Compress a site archive to a zip. Note that the site must have already been archived!
* @param siteId - id of site that was archived
* @return true if zip successful, false if not.
* @throws IOException
*/
public boolean archiveZip(String siteId) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy