Interface PluginArchiver
- All Known Implementing Classes:
DefaultPluginArchiver,DefaultSitePluginArchiver,WebExplorerArchiver
public interface PluginArchiver
Component responsible to archive plugin data.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddeleteBeforePartialImport(String pluginName, javax.jcr.Node allPluginsNode) When inMergePolicy.DELETE_BEFORE, the plugin needs to delete its Node before importing (if it exists).voidexport(String pluginName, javax.jcr.Node pluginNode, ZipOutputStream zos, String prefix) Export plugin data into the destination archivepartialImport(String pluginName, javax.jcr.Node allPluginsNode, Path zipPath, String zipPluginEntryPath, Merger merger) Import plugin data from the source archive
-
Method Details
-
export
void export(String pluginName, javax.jcr.Node pluginNode, ZipOutputStream zos, String prefix) throws IOException Export plugin data into the destination archive- Parameters:
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.
-
deleteBeforePartialImport
default void deleteBeforePartialImport(String pluginName, javax.jcr.Node allPluginsNode) throws javax.jcr.RepositoryException When inMergePolicy.DELETE_BEFORE, the plugin needs to delete its Node before importing (if it exists).- Parameters:
pluginName- the plugin name.allPluginsNode- theNodefor all plugins.- Throws:
javax.jcr.RepositoryException- if a Repository error occured
-
partialImport
ImportReport partialImport(String pluginName, javax.jcr.Node allPluginsNode, Path zipPath, String zipPluginEntryPath, Merger merger) throws IOException Import plugin data from the source archive- Parameters:
pluginName- the plugin name.allPluginsNode- theNodefor 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.
-