jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ard Schrijvers <a.schrijv...@onehippo.com>
Subject Re: 'reverse path prefix' xpath query
Date Wed, 17 Nov 2010 12:10:12 GMT
On Wed, Nov 17, 2010 at 12:57 PM, Torgeir Veimo <torgeir@netenviron.com> wrote:
> I need to query a workspace to find subscribers nodes to be notified
> for a workspace event. Each subscribers have a subscription node with
> a property containing the path prefix for what they're subscribing to.
> The event listener provides the full path to the node being updated.
>
> Eg. someone subscribes to new blog entries under /blog/wildlife/. A
> new blog entry is added with a path of /blog/wildlife/2010/11/17/wolfs
>
> How do I construct an xpath query that finds the nodes with the
> correct path prefix property?

You mean /jcr:root/blog/wildlife//* I guess?

Ard

>
> --
> -Tor
>



-- 
Hippo
Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522 4466
USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100
•  +1 (707) 773 4646
Canada    •   Montréal  5369 Boulevard St-Laurent  •  Montréal QC H2T
1S5  •  +1 (514) 316 8966
www.onehippo.com  •  www.onehippo.org  •  info@onehippo.com

Mime
View raw message