public class FileVaultContentSerializer extends Object implements DistributionContentSerializer
DistributionContentSerializer based on Apache Jackrabbit FileVault| Constructor 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
DistributionContentSerializerexportToStream in interface DistributionContentSerializerresourceResolver - 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
DistributionContentSerializerimportFromStream in interface DistributionContentSerializerresourceResolver - the resource resolver used to write resourcesinputStream - the stream to importDistributionException - if importing fails for some reasonpublic String getName()
DistributionContentSerializergetName in interface DistributionContentSerializerpublic boolean isRequestFiltering()
DistributionContentSerializerDistributionContentSerializer can build package filters for including / excluding
certain resources / attributes directly from a DistributionRequestisRequestFiltering in interface DistributionContentSerializertrue if it can build filters from a request, false otherwiseCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.