Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AD5992CD for ; Fri, 4 May 2012 14:55:11 +0000 (UTC) Received: (qmail 30358 invoked by uid 500); 4 May 2012 14:55:11 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 30328 invoked by uid 500); 4 May 2012 14:55:11 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 30319 invoked by uid 99); 4 May 2012 14:55:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 14:55:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 14:55:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1296943072D for ; Fri, 4 May 2012 14:54:50 +0000 (UTC) Date: Fri, 4 May 2012 14:54:50 +0000 (UTC) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: oak-dev@jackrabbit.apache.org Message-ID: <280454727.27207.1336143290077.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2099323686.2915.1335535430428.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OAK-75) specify format and semantics of 'filter' parameter in MicroKernel API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OAK-75?page=3Dcom.atlassian.jir= a.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13268411= #comment-13268411 ]=20 Michael D=C3=BCrig commented on OAK-75: ---------------------------------- bq. should we allow for node name filtering as well? Would make sense since there are corresponding getNodes() call on the JCR A= PI. Having to filter on top of the Microkernel might be very expensive for = large node lists.=20 bq. if yes, do we need to specify separate filters for properties and node = names? I think it is sufficient to apply the filter to either of them. So we'd nee= d a way to specify whether the filter should apply to the nodes or the prop= erties. =20 > specify format and semantics of 'filter' parameter in MicroKernel API > --------------------------------------------------------------------- > > Key: OAK-75 > URL: https://issues.apache.org/jira/browse/OAK-75 > Project: Jackrabbit Oak > Issue Type: New Feature > Components: mk > Reporter: Stefan Guggisberg > Attachments: OAK-83.patch > > > the following MicroKernel methods contain a 'filter' string parameter: > - getJournal > - diff > - getNodes > through the filter an API client could e.g. specify: > - special 'meta' properties to be included (e.g. ":hash") > - glob patterns on the names of properties/child nodes to be included/exc= luded > - path filter (for getJournal and diff) > format/detailed semantics TBD, here's an initial proposal (json): > {code}=20 > { > "path" : "/some/path", > "incl" : [ ":hash", "*" ], > "excl" : [ "tmp*" ] > } > {code}=20 > name filter patterns should ideally be the same=20 > format as specified for JCR Node.getNodes/getProperties. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira