Interface Archiver
- All Known Implementing Classes:
ContentArchiver,PluginsArchiver,ResourcesArchiver,SitesArchiver
public interface Archiver
Component responsible to archive data.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<I18nizableText> Potential 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 archive
-
Method Details
-
getManifestReaderWriter
Get theManifestReaderWriter- Returns:
- the
ManifestReaderWriter
-
export
Export data into the destination archive- Parameters:
zos- the output data stream.- Throws:
IOException- if an error occurs while writing entries to the archive.
-
managedPartialImports
Returns the partial imports, among the given ones, that thisArchiveris able to manage.- Parameters:
partialImports- The partial imports to filter- Returns:
- The managed partial imports
-
partialImport
ImportReport partialImport(Path zipPath, Collection<String> partialImports, Merger merger, boolean deleteBefore) throws IOException Import data (limited to the given partial imports) from the source archive- Parameters:
zipPath- the input zip pathpartialImports- The partial imports to do. The passed collection must already be filtered out bymanagedPartialImports(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.
-
additionalSuccessImportMail
Potential additional information to append to the success mail of the import process- Returns:
- the mail additional information
-