Class FileVaultContentSerializer
java.lang.Object
org.apache.sling.distribution.serialization.impl.vlt.FileVaultContentSerializer
- All Implemented Interfaces:
DistributionContentSerializer
DistributionContentSerializer based on Apache Jackrabbit FileVault-
Constructor Summary
ConstructorsConstructorDescriptionFileVaultContentSerializer(String name, org.apache.jackrabbit.vault.packaging.Packaging packaging, String[] packageRoots, String[] nodeFilters, String[] propertyFilters, boolean useBinaryReferences, Map<String, String> exportPathMapping, ImportSettings importSettings) FileVaultContentSerializer(String name, org.apache.jackrabbit.vault.packaging.Packaging packaging, ExportSettings exportSettings, ImportSettings importSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoidexportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, DistributionExportOptions exportOptions, OutputStream outputStream) extracts the resources identified by the given request into the given outputStreamgetName()retrieve the name of this content serializervoidimportFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, InputStream inputStream) imports the given streambooleanwhether or not thisDistributionContentSerializercan build package filters for including / excluding certain resources / attributes directly from aDistributionRequest
-
Constructor Details
-
FileVaultContentSerializer
-
FileVaultContentSerializer
public FileVaultContentSerializer(String name, org.apache.jackrabbit.vault.packaging.Packaging packaging, ExportSettings exportSettings, ImportSettings importSettings)
-
-
Method Details
-
exportToStream
public void exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, DistributionExportOptions exportOptions, OutputStream outputStream) throws DistributionException Description copied from interface:DistributionContentSerializerextracts the resources identified by the given request into the given outputStream- Specified by:
exportToStreamin interfaceDistributionContentSerializer- Parameters:
resourceResolver- the resource resolver used to access resources to exportexportOptions- export optionsoutputStream- the output stream- Throws:
DistributionException- if extraction fails for some reason
-
importFromStream
public void importFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, InputStream inputStream) throws DistributionException Description copied from interface:DistributionContentSerializerimports the given stream- Specified by:
importFromStreamin interfaceDistributionContentSerializer- Parameters:
resourceResolver- the resource resolver used to write resourcesinputStream- the stream to import- Throws:
DistributionException- if importing fails for some reason
-
getName
Description copied from interface:DistributionContentSerializerretrieve the name of this content serializer- Specified by:
getNamein interfaceDistributionContentSerializer- Returns:
- the name of this content serializer
-
isRequestFiltering
public boolean isRequestFiltering()Description copied from interface:DistributionContentSerializerwhether or not thisDistributionContentSerializercan build package filters for including / excluding certain resources / attributes directly from aDistributionRequest- Specified by:
isRequestFilteringin interfaceDistributionContentSerializer- Returns:
trueif it can build filters from a request,falseotherwise
-