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[] nodeFilters,
String[] propertyFilters,
boolean useBinaryReferences,
int autosaveThreshold,
Map<String,String> exportPathMapping,
boolean strict) |
Modifier and Type | Method and Description |
---|---|
void |
exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver,
DistributionExportOptions exportOptions,
OutputStream outputStream)
extracts the resources identified by the given request into the given outputStream
|
String |
getName()
retrieve the name of this content serializer
|
void |
importFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver,
InputStream inputStream)
imports the given stream
|
boolean |
isRequestFiltering()
whether or not this
DistributionContentSerializer can build package filters for including / excluding
certain resources / attributes directly from a DistributionRequest |
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[] nodeFilters, String[] propertyFilters, boolean useBinaryReferences, int autosaveThreshold, Map<String,String> exportPathMapping, boolean strict)
public void exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, DistributionExportOptions exportOptions, OutputStream outputStream) throws DistributionException
DistributionContentSerializer
exportToStream
in interface DistributionContentSerializer
resourceResolver
- the resource resolver used to access resources to exportexportOptions
- export optionsoutputStream
- 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 resource resolver used to write resourcesinputStream
- the stream to importDistributionException
- if importing fails for some reasonpublic String getName()
DistributionContentSerializer
getName
in interface DistributionContentSerializer
public boolean isRequestFiltering()
DistributionContentSerializer
DistributionContentSerializer
can build package filters for including / excluding
certain resources / attributes directly from a DistributionRequest
isRequestFiltering
in interface DistributionContentSerializer
true
if it can build filters from a request, false
otherwiseCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.