Package com.composum.sling.nodes.update
Interface SourceUpdateService
-
- All Known Implementing Classes:
SourceUpdateServiceImpl
public interface SourceUpdateService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidupdateFromZip(@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, IllegalArgumentExceptionReads 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 tozipInputStream- 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/somepathnodePath- the path of the node we want to update- Throws:
IllegalArgumentException- if something about the parameters is too fishy to go onIOExceptionjavax.jcr.RepositoryExceptionTransformerException
-
-