Interface SitePluginArchiver
-
- All Known Implementing Classes:
DefaultSitePluginArchiver
public interface SitePluginArchiver
Component responsible to archive site plugin data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
export(Site site, String pluginName, Node pluginNode, ZipOutputStream zos, String prefix)
Export plugin data into the destination archiveImportReport
partialImport(Site site, String pluginName, Node allPluginsNode, Path zipPath, String zipPluginEntryPath, Merger merger)
Import plugin data from the source archive
-
-
-
Method Detail
-
export
void export(Site site, String pluginName, Node pluginNode, ZipOutputStream zos, String prefix) throws IOException
Export plugin data into the destination archive- Parameters:
site
- the current site.pluginName
- the plugin name.pluginNode
- the pluginNode
.zos
- the output data stream.prefix
- the prefix for ZIP entries.- Throws:
IOException
- if an error occurs while writing entries to the archive.
-
partialImport
ImportReport partialImport(Site site, String pluginName, Node allPluginsNode, Path zipPath, String zipPluginEntryPath, Merger merger) throws IOException
Import plugin data from the source archive- Parameters:
site
- the current site.pluginName
- the plugin name.allPluginsNode
- theNode
for all plugins.zipPath
- The input ZIP filezipPluginEntryPath
- The input ZIP entrymerger
- TheMerger
- Returns:
- The
ImportReport
- Throws:
IOException
- if an error occurs while reading the archive.
-
-