Class WebExplorerArchiver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.contentio.archive.DefaultPluginArchiver
org.ametys.plugins.webcontentio.archive.WebExplorerArchiver
- All Implemented Interfaces:
PluginArchiver,LogEnabled,Serviceable
SitePluginArchiver handling the "web-explorer" part, holding all shared resources.-
Field Summary
Fields inherited from class org.ametys.plugins.contentio.archive.DefaultPluginArchiver
EXTENSION_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexport(String pluginName, javax.jcr.Node node, ZipOutputStream zos, String prefix) Export plugin data into the destination archiveprotected ContentHandlergetSystemViewHandler(ContentHandler initialHandler) Returns the actual handler receiving the JCR system view.partialImport(String pluginName, javax.jcr.Node allPluginsNode, Path zipPath, String zipPluginEntryPath, Merger merger) Import plugin data from the source archivevoidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.contentio.archive.DefaultPluginArchiver
importContentsIfAnyMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.contentio.archive.PluginArchiver
deleteBeforePartialImport
-
Constructor Details
-
WebExplorerArchiver
public WebExplorerArchiver()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classDefaultPluginArchiver- Throws:
ServiceException
-
export
public void export(String pluginName, javax.jcr.Node node, ZipOutputStream zos, String prefix) throws IOException Description copied from interface:PluginArchiverExport plugin data into the destination archive- Specified by:
exportin interfacePluginArchiver- Overrides:
exportin classDefaultPluginArchiver- Parameters:
pluginName- the plugin name.node- 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.
-
getSystemViewHandler
Description copied from class:DefaultPluginArchiverReturns the actual handler receiving the JCR system view. May be used to filter out some parts of the JCR export.- Overrides:
getSystemViewHandlerin classDefaultPluginArchiver- Parameters:
initialHandler- the targetContentHandler.- Returns:
- a ContentHandler.
-
partialImport
public ImportReport partialImport(String pluginName, javax.jcr.Node allPluginsNode, Path zipPath, String zipPluginEntryPath, Merger merger) throws IOException Description copied from interface:PluginArchiverImport plugin data from the source archive- Specified by:
partialImportin interfacePluginArchiver- Overrides:
partialImportin classDefaultPluginArchiver- 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.
-