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
    void importZip​(byte[] data, String relativeRoot)
    Imports content from zip file to the repository, based on the relative root.
    void importZip​(byte[] data, String relativeRoot, boolean override)
    Imports content from zip file to the repository, based on the relative root.
    void importZip​(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.
    void importZip​(ZipInputStream zipInputStream, String relativeRoot)
    Imports content from zip file to the repository, based on the relative root.
    void importZip​(ZipInputStream zipInputStream, String relativeRoot, boolean override)
    Imports content from zip file to the repository, based on the relative root.
    void importZip​(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 RepositoryImportException
      Imports content from zip file to the repository, based on the relative root.
      Parameters:
      zipInputStream - the input stream
      relativeRoot - the relative root
      Throws:
      RepositoryImportException - in case the zip cannot be imported
    • importZip

      void importZip​(ZipInputStream zipInputStream, String relativeRoot, boolean override) throws RepositoryImportException
      Imports 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 stream
      relativeRoot - the relative root
      override - 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 RepositoryImportException
      Imports 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 stream
      relativeRoot - the relative root
      override - whether to override existing
      excludeRootFolderName - whether to exclude the root folder name
      Throws:
      RepositoryImportException - in case the zip cannot be imported
    • importZip

      void importZip​(byte[] data, String relativeRoot) throws RepositoryImportException
      Imports content from zip file to the repository, based on the relative root.
      Parameters:
      data - the zip file as byte array
      relativeRoot - the relative root
      Throws:
      RepositoryImportException - in case the zip cannot be imported
    • importZip

      void importZip​(byte[] data, String relativeRoot, boolean override) throws RepositoryImportException
      Imports 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 array
      relativeRoot - the relative root
      override - 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 RepositoryImportException
      Imports 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 array
      relativeRoot - the relative root
      override - whether to override existing
      excludeRootFolderName - the exclude root folder name
      filter - a filter
      Throws:
      RepositoryImportException - in case the zip cannot be imported