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
FieldsModifier and TypeFieldDescriptionprotected ContentsArchiverHelperThe helper for archiving contentsprotected CurrentUserProviderThe current user providerprotected DefaultPageFactoryThe default page factoryprotected ObservationManagerThe observation managerprotected ModelItemTypeExtensionPointThe page data type extension pointprotected SitePluginArchiverExtensionPointThe extension point forSitePluginArchiversprotected AmetysObjectResolverThe Ametys Object Resolverprotected ResourcesArchiverHelperThe helper for archiving resourcesprotected ServiceExtensionPointThe extension point for Servicesprotected SiteManagerThe site managerprotected SitemapFactoryThe sitemap factoryprotected SiteTypesExtensionPointThe extension point forSiteTypesprotected TagProviderExtensionPointThe extension point forTagProvidersstatic final StringArchiver id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPotential additional information to append to the success mail of the import processvoidexport(ZipOutputStream zos) Export data into the destination archiveGet theManifestReaderWritermanagedPartialImports(Collection<String> partialImports) Returns the partial imports, among the given ones, that thisArchiveris able to manage.partialImport(Path zipPath, Collection<String> partialImports, Merger merger, boolean deleteBefore) Import data (limited to the given partial imports) from the source archivevoidservice(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 forSitePluginArchivers -
_tagProviderEP
The extension point forTagProviders -
_resolver
The Ametys Object Resolver -
_defaultPageFactory
The default page factory -
_sitemapFactory
The sitemap factory -
_serviceExtensionPoint
The extension point for Services -
_siteTypeEP
The extension point forSiteTypes -
_pageDataTypeExtensionPoint
The page data type extension point -
_observationManager
The observation manager -
_currentUserProvider
The current user provider
-
-
Constructor Details
-
SitesArchiver
public SitesArchiver()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getManifestReaderWriter
Description copied from interface:ArchiverGet theManifestReaderWriter- Specified by:
getManifestReaderWriterin interfaceArchiver- Returns:
- the
ManifestReaderWriter
-
export
Description copied from interface:ArchiverExport data into the destination archive- Specified by:
exportin interfaceArchiver- Parameters:
zos- the output data stream.- Throws:
IOException- if an error occurs while writing entries to the archive.
-
additionalSuccessImportMail
Description copied from interface:ArchiverPotential additional information to append to the success mail of the import process- Specified by:
additionalSuccessImportMailin interfaceArchiver- Returns:
- the mail additional information
-
managedPartialImports
Description copied from interface:ArchiverReturns the partial imports, among the given ones, that thisArchiveris able to manage.- Specified by:
managedPartialImportsin 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:ArchiverImport data (limited to the given partial imports) from the source archive- Specified by:
partialImportin 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- TheMergerdeleteBefore-trueif objects need to be deleted before applying the partial imports- Returns:
- The
ImportReport - Throws:
IOException- if an error occurs while reading archive entries.
-