Interface Archiver
-
- All Known Implementing Classes:
ContentArchiver
,PluginsArchiver
,ResourcesArchiver
,SitesArchiver
public interface Archiver
Component responsible to archive data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<I18nizableText>
additionalSuccessImportMail()
Potential additional information to append to the success mail of the import processvoid
export(ZipOutputStream zos)
Export data into the destination archiveManifestReaderWriter
getManifestReaderWriter()
Get theManifestReaderWriter
Collection<String>
managedPartialImports(Collection<String> partialImports)
Returns the partial imports, among the given ones, that thisArchiver
is able to manage.ImportReport
partialImport(Path zipPath, Collection<String> partialImports, Merger merger, boolean deleteBefore)
Import data (limited to the given partial imports) from the source archive
-
-
-
Method Detail
-
getManifestReaderWriter
ManifestReaderWriter getManifestReaderWriter()
Get theManifestReaderWriter
- Returns:
- the
ManifestReaderWriter
-
export
void export(ZipOutputStream zos) throws IOException
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
Collection<String> managedPartialImports(Collection<String> partialImports)
Returns the partial imports, among the given ones, that thisArchiver
is 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
- 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.
-
additionalSuccessImportMail
default List<I18nizableText> additionalSuccessImportMail()
Potential additional information to append to the success mail of the import process- Returns:
- the mail additional information
-
-