Interface SitePluginArchiver
- All Known Implementing Classes:
DefaultSitePluginArchiver
public interface SitePluginArchiver
Component responsible to archive site plugin data.
-
Method Details
-
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.
-