public class FileVaultContentSerializer extends Object implements DistributionContentSerializer
DistributionContentSerializer
based on Apache Jackrabbit FileVaultConstructor and Description |
---|
FileVaultContentSerializer(String name,
org.apache.jackrabbit.vault.packaging.Packaging packaging,
org.apache.jackrabbit.vault.fs.api.ImportMode importMode,
org.apache.jackrabbit.vault.fs.io.AccessControlHandling aclHandling,
String[] packageRoots,
String[] filters,
boolean useBinaryReferences,
int autosaveThreshold) |
Modifier and Type | Method and Description |
---|---|
void |
exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver,
org.apache.sling.distribution.DistributionRequest request,
OutputStream outputStream)
extracts the resources identified by the given request into the given outputStream
|
String |
getName()
retrieve the name of this content serializer
|
protected javax.jcr.Session |
getSession(org.apache.sling.api.resource.ResourceResolver resourceResolver) |
void |
importFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver,
InputStream inputStream)
imports the given stream
|
protected void |
ungetSession(javax.jcr.Session session) |
public FileVaultContentSerializer(String name, org.apache.jackrabbit.vault.packaging.Packaging packaging, org.apache.jackrabbit.vault.fs.api.ImportMode importMode, org.apache.jackrabbit.vault.fs.io.AccessControlHandling aclHandling, String[] packageRoots, String[] filters, boolean useBinaryReferences, int autosaveThreshold)
public void exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, org.apache.sling.distribution.DistributionRequest request, OutputStream outputStream) throws DistributionException
DistributionContentSerializer
exportToStream
in interface DistributionContentSerializer
resourceResolver
- the user resource resolverrequest
- a distribution requestoutputStream
- the output streamDistributionException
- if extraction fails for some reasonpublic void importFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, InputStream inputStream) throws DistributionException
DistributionContentSerializer
importFromStream
in interface DistributionContentSerializer
resourceResolver
- the user resource resolverinputStream
- the stream to importDistributionException
- if importing fails for some reasonprotected javax.jcr.Session getSession(org.apache.sling.api.resource.ResourceResolver resourceResolver) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void ungetSession(javax.jcr.Session session)
public String getName()
DistributionContentSerializer
getName
in interface DistributionContentSerializer
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.