Interface SourceUpdateService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void updateFromZip​(@NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull InputStream zipInputStream, @NotNull String nodePath)
      Reads a ZIP from the input stream and updates the resources at the path of the entries of the zip file so that they are identical to the stream, ignoring / updating metadata.
    • Method Detail

      • updateFromZip

        void updateFromZip​(@NotNull
                           @NotNull org.apache.sling.api.resource.ResourceResolver resolver,
                           @NotNull
                           @NotNull InputStream zipInputStream,
                           @NotNull
                           @NotNull String nodePath)
                    throws IOException,
                           javax.jcr.RepositoryException,
                           TransformerException,
                           IllegalArgumentException
        Reads a ZIP from the input stream and updates the resources at the path of the entries of the zip file so that they are identical to the stream, ignoring / updating metadata.
        Parameters:
        resolver - the resolver we write to
        zipInputStream - contains a zip with the data to import. It needs to contain the actual content to import below jcr_root. E.g. if nodePath is /content/whatever, the zip contains the relevant content below jcr_root/content/whatever/somepath
        nodePath - the path of the node we want to update
        Throws:
        IllegalArgumentException - if something about the parameters is too fishy to go on
        IOException
        javax.jcr.RepositoryException
        TransformerException