[ 
https://issues.apache.org/jira/browse/SLING-5815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371395#comment-15371395
 ] 

Marius Petria commented on SLING-5815:
--------------------------------------

One additional thing that can be passed to the serializer is a 
{{ResourceMapper}}. 
{noformat}
Resource ResourceMapper.map(Resource)
{noformat}
The mapper can change path, properties, or even cause to skip a resource (if it 
returns null).
- export will call the mapper for each resource before writing to stream
- import will call the mapper for each resource before writing to repo

I am not sure how easy is to implement this for VLT, but the implementation 
could throw {{NotSupported}} if it does not support mappers.


> Expose DistributionContentSerializer 
> -------------------------------------
>
>                 Key: SLING-5815
>                 URL: https://issues.apache.org/jira/browse/SLING-5815
>             Project: Sling
>          Issue Type: Improvement
>          Components: Distribution
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: Content Distribution 0.2.0
>
>         Attachments: SLING-5815.0.patch
>
>
> Expose {{DistributionContentSerializer}} API from 
> _org.apache.sling.distribution.core_ in order to allow implementation of 
> custom serialization formats (e.g. Avro and Kryo defined in 
> _org.apache.sling.distribution.extensions_).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to