Interface IRepositoryImporter
- All Known Subinterfaces:
IRepository
public interface IRepositoryImporter
The interface with the import methods for the repository .
-
Method Summary
Modifier and Type Method Description voidimportZip(byte[] data, String relativeRoot)Imports content from zip file to the repository, based on the relative root.voidimportZip(byte[] data, String relativeRoot, boolean override)Imports content from zip file to the repository, based on the relative root.voidimportZip(byte[] data, String relativeRoot, boolean override, boolean excludeRootFolderName, Map<String,String> filter)Imports content from zip file to the repository, based on the relative root.voidimportZip(ZipInputStream zipInputStream, String relativeRoot)Imports content from zip file to the repository, based on the relative root.voidimportZip(ZipInputStream zipInputStream, String relativeRoot, boolean override)Imports content from zip file to the repository, based on the relative root.voidimportZip(ZipInputStream zipInputStream, String relativeRoot, boolean override, boolean excludeRootFolderName)Imports content from zip file to the repository, based on the relative root.
-
Method Details
-
importZip
void importZip(ZipInputStream zipInputStream, String relativeRoot) throws RepositoryImportExceptionImports content from zip file to the repository, based on the relative root.- Parameters:
zipInputStream- the input streamrelativeRoot- the relative root- Throws:
RepositoryImportException- in case the zip cannot be imported
-
importZip
void importZip(ZipInputStream zipInputStream, String relativeRoot, boolean override) throws RepositoryImportExceptionImports content from zip file to the repository, based on the relative root. Overrides the previous content depending on the override parameter.- Parameters:
zipInputStream- the input streamrelativeRoot- the relative rootoverride- whether to override existing- Throws:
RepositoryImportException- in case the zip cannot be imported
-
importZip
void importZip(ZipInputStream zipInputStream, String relativeRoot, boolean override, boolean excludeRootFolderName) throws RepositoryImportExceptionImports content from zip file to the repository, based on the relative root. Overrides the previous content depending on the override parameter. Excludes the name of the root folder, during the import, based on the excludeRootFolderName parameter.- Parameters:
zipInputStream- the input streamrelativeRoot- the relative rootoverride- whether to override existingexcludeRootFolderName- whether to exclude the root folder name- Throws:
RepositoryImportException- in case the zip cannot be imported
-
importZip
Imports content from zip file to the repository, based on the relative root.- Parameters:
data- the zip file as byte arrayrelativeRoot- the relative root- Throws:
RepositoryImportException- in case the zip cannot be imported
-
importZip
void importZip(byte[] data, String relativeRoot, boolean override) throws RepositoryImportExceptionImports content from zip file to the repository, based on the relative root. Overrides the previous content depending on the override parameter.- Parameters:
data- the zip file as byte arrayrelativeRoot- the relative rootoverride- whether to override existing- Throws:
RepositoryImportException- in case the zip cannot be imported
-
importZip
void importZip(byte[] data, String relativeRoot, boolean override, boolean excludeRootFolderName, Map<String,String> filter) throws RepositoryImportExceptionImports content from zip file to the repository, based on the relative root. Overrides the previous content depending on the override parameter. Excludes the name of the root folder, during the import, based on the excludeRootFolderName parameter.- Parameters:
data- the zip file as byte arrayrelativeRoot- the relative rootoverride- whether to override existingexcludeRootFolderName- the exclude root folder namefilter- a filter- Throws:
RepositoryImportException- in case the zip cannot be imported
-