public class SiteZipper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ServerConfigurationService |
serverConfigurationService |
| Constructor and Description |
|---|
SiteZipper() |
| Modifier and Type | Method and Description |
|---|---|
void |
setServerConfigurationService(ServerConfigurationService service) |
String |
unzipArchive(String zipFilePath,
String m_unzipPath)
Unzip a zip file into the unzip directory.
|
boolean |
zipArchive(String siteId,
String m_storagePath)
Zip a site archive.
|
protected ServerConfigurationService serverConfigurationService
public void setServerConfigurationService(ServerConfigurationService service)
public String unzipArchive(String zipFilePath, String m_unzipPath) throws IOException
zipFilePath - path to ZIP filem_unzipPath - unzip dir for zipsIOExceptionpublic boolean zipArchive(String siteId, String m_storagePath) throws IOException
siteId - site that has already been archivedm_storagePath - path to where the archives areIOExceptionCopyright © 2006–2017 Sakai Project. All rights reserved.