Class SitesArchiver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.webcontentio.archive.SitesArchiver
- All Implemented Interfaces:
Archiver
,LogEnabled
,Serviceable
Archiver
for all sites.-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentsArchiverHelper
The helper for archiving contentsprotected DefaultPageFactory
The default page factoryprotected ModelItemTypeExtensionPoint
The page data type extension pointprotected SitePluginArchiverExtensionPoint
The extension point forSitePluginArchiver
sprotected AmetysObjectResolver
The Ametys Object Resolverprotected ResourcesArchiverHelper
The helper for archiving resourcesprotected ServiceExtensionPoint
The extension point for Servicesprotected SiteManager
The site managerprotected SitemapFactory
The sitemap factoryprotected SiteTypesExtensionPoint
The extension point forSiteType
sprotected TagProviderExtensionPoint
The extension point forTagProvider
sstatic final String
Archiver id. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPotential additional information to append to the success mail of the import processvoid
export
(ZipOutputStream zos) Export data into the destination archiveGet theManifestReaderWriter
managedPartialImports
(Collection<String> partialImports) Returns the partial imports, among the given ones, that thisArchiver
is able to manage.partialImport
(Path zipPath, Collection<String> partialImports, Merger merger, boolean deleteBefore) Import data (limited to the given partial imports) from the source archivevoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ID
Archiver id.- See Also:
-
_siteManager
The site manager -
_contentsArchiverHelper
The helper for archiving contents -
_resourcesArchiverHelper
The helper for archiving resources -
_pluginArchiverExtensionPoint
The extension point forSitePluginArchiver
s -
_tagProviderEP
The extension point forTagProvider
s -
_resolver
The Ametys Object Resolver -
_defaultPageFactory
The default page factory -
_sitemapFactory
The sitemap factory -
_serviceExtensionPoint
The extension point for Services -
_siteTypeEP
The extension point forSiteType
s -
_pageDataTypeExtensionPoint
The page data type extension point
-
-
Constructor Details
-
SitesArchiver
public SitesArchiver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getManifestReaderWriter
Description copied from interface:Archiver
Get theManifestReaderWriter
- Specified by:
getManifestReaderWriter
in interfaceArchiver
- Returns:
- the
ManifestReaderWriter
-
export
Description copied from interface:Archiver
Export data into the destination archive- Specified by:
export
in interfaceArchiver
- Parameters:
zos
- the output data stream.- Throws:
IOException
- if an error occurs while writing entries to the archive.
-
additionalSuccessImportMail
Description copied from interface:Archiver
Potential additional information to append to the success mail of the import process- Specified by:
additionalSuccessImportMail
in interfaceArchiver
- Returns:
- the mail additional information
-
managedPartialImports
Description copied from interface:Archiver
Returns the partial imports, among the given ones, that thisArchiver
is able to manage.- Specified by:
managedPartialImports
in interfaceArchiver
- Parameters:
partialImports
- The partial imports to filter- Returns:
- The managed partial imports
-
partialImport
public ImportReport partialImport(Path zipPath, Collection<String> partialImports, Merger merger, boolean deleteBefore) throws IOException Description copied from interface:Archiver
Import data (limited to the given partial imports) from the source archive- Specified by:
partialImport
in interfaceArchiver
- Parameters:
zipPath
- the input zip pathpartialImports
- The partial imports to do. The passed collection must already be filtered out byArchiver.managedPartialImports(java.util.Collection<java.lang.String>)
merger
- TheMerger
deleteBefore
-true
if objects need to be deleted before applying the partial imports- Returns:
- The
ImportReport
- Throws:
IOException
- if an error occurs while reading archive entries.
-