You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Nicolas Peltier (JIRA)" <ji...@apache.org> on 2017/07/05 19:30:00 UTC

[jira] [Comment Edited] (SLING-6078) add a fluent api to generate a sling pipe

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

Nicolas Peltier edited comment on SLING-6078 at 7/5/17 7:29 PM:
----------------------------------------------------------------

Hey [~bdelacretaz] would something like
https://github.com/apache/sling/compare/trunk...npeltier:SLING-6078#diff-55de7f520448e0dd71bd0a098b94a301R15

suits you?

basically you get a {{PipeBuilder}} object with {{plumber.getBuilder(resolver)}} api
and then run the pipe you described following the command:
{{builder.xpath("/jcr:root/home/users//…”).parent().rm().run()}}
{{pipe}}, {{expr}} and other more generic APIs are available but most commons commands have been made shortened


was (Author: npeltier):
Hey [~bdelacretaz] would something like
https://github.com/apache/sling/compare/trunk...npeltier:SLING-6078#diff-55de7f520448e0dd71bd0a098b94a301R15

suits you?

> add a fluent api to generate a sling pipe
> -----------------------------------------
>
>                 Key: SLING-6078
>                 URL: https://issues.apache.org/jira/browse/SLING-6078
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Nicolas Peltier
>
> it would be cool that plumber or sthing like PipeBuilder allows to generate a pipe, writing the serialization of it, with simple API
> (thx [~bdelacretaz] for the idea!)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)