Interface ArchiveService


  • public interface ArchiveService

    ArchiveService takes care of exporting and importing entities.

    • Method Detail

      • archive

        String archive​(String siteId)
        Create an archive for the resources of a site.
        Parameters:
        siteId - The id of the site to archive.
        Returns:
        A log of messages from the archive.
      • merge

        String merge​(String archiveUrl,
                     String siteId,
                     String siteCreatorId)
        Read in an archived set of resources, and merge the entries into the specified site, and set site creator name
        Parameters:
        archiveUrl - The archive xml file Url.
        siteId - The id of the site to merge the content into.
        siteCreatorId - the site creator Id
        Returns:
        A log of messages from the merge.
      • mergeFromZip

        String mergeFromZip​(String zipFilePath,
                            String siteId,
                            String siteCreatorId)
        Read in an archived set of resources, and merge the entries into the specified site, and set site creator name Allows a ZIP file to be used instead of the site archive directory
        Parameters:
        zipFilePath - The archived site as a zip file
        siteId - The id of the site to merge the content into.
        siteCreatorId - the site creator Id
        Returns:
        A log of messages from the merge.
      • archiveAndZip

        String archiveAndZip​(String siteId)
                      throws IOException
        Archive a site then compress it to a zip.
        Parameters:
        siteId - - id of site to be archived
        Returns:
        A log of messages from creating the archive
        Throws:
        IOException