You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dirk Rudolph (JIRA)" <ji...@apache.org> on 2018/01/07 15:27:00 UTC
[jira] [Commented] (SLING-7360) Support creation of
DistributionPackages for delete by DistributionContentSerializer
[ https://issues.apache.org/jira/browse/SLING-7360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16315341#comment-16315341 ]
Dirk Rudolph commented on SLING-7360:
-------------------------------------
I'm thinking about a {{DistributionContentSerializer#isDeletionSupported()}} similar to {{DistributionContentSerializer#isRequestFiltering}} which is checked by {{AbstractDistributionPackageBuilder}} to decided whether to return a {{SimpleDistributionPackage}} or call the serializer to create a package for deletion.
> Support creation of DistributionPackages for delete by DistributionContentSerializer
> ------------------------------------------------------------------------------------
>
> Key: SLING-7360
> URL: https://issues.apache.org/jira/browse/SLING-7360
> Project: Sling
> Issue Type: Improvement
> Components: Content Distribution
> Reporter: Dirk Rudolph
> Priority: Minor
>
> For the integration into systems or then sling, that support creation deletion as part of their API [1], we can implement a {{DistributionContentSerializer}} writing the format the API expects. That currently works well for creation but not for deletion because both {{FileDistributionPackageBuilder}} and {{ResourceDistributionPackageBuilder}} inherit from {{AbstractDistributionPackageBuilder}} which [returns a SimpleDistributionPackage|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/packaging/impl/AbstractDistributionPackageBuilder.java#L72] for {{DistributionRequestType.DELETE}}.
> The other system's API might expect a different format then the one written by {{SimpleDistributionPackage}} so it would be create if it would be possible to delegate the creation of a deletion package to the serializer as well, in case the serializer supports that.
> [1] https://lucene.apache.org/solr/guide/7_2/uploading-data-with-index-handlers.html
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)