Class FileVaultContentSerializer
- java.lang.Object
-
- org.apache.sling.distribution.serialization.impl.vlt.FileVaultContentSerializer
-
- All Implemented Interfaces:
DistributionContentSerializer
public class FileVaultContentSerializer extends Object implements DistributionContentSerializer
DistributionContentSerializerbased on Apache Jackrabbit FileVault
-
-
Constructor Summary
Constructors Constructor Description FileVaultContentSerializer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, DistributionExportOptions exportOptions, OutputStream outputStream)extracts the resources identified by the given request into the given outputStreamStringgetName()retrieve the name of this content serializervoidimportFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, InputStream inputStream)imports the given streambooleanisRequestFiltering()whether or not thisDistributionContentSerializercan build package filters for including / excluding certain resources / attributes directly from aDistributionRequest
-
-
-
Constructor Detail
-
FileVaultContentSerializer
public FileVaultContentSerializer(String name, org.apache.jackrabbit.vault.packaging.Packaging packaging, String[] packageRoots, String[] nodeFilters, String[] propertyFilters, boolean useBinaryReferences, Map<String,String> exportPathMapping, ImportSettings importSettings)
-
FileVaultContentSerializer
public FileVaultContentSerializer(String name, org.apache.jackrabbit.vault.packaging.Packaging packaging, ExportSettings exportSettings, ImportSettings importSettings)
-
-
Method Detail
-
exportToStream
public void exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, DistributionExportOptions exportOptions, OutputStream outputStream) throws DistributionExceptionDescription 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 DistributionExceptionDescription 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
public String 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
-
-