Return-Path: X-Original-To: apmail-directory-api-archive@minotaur.apache.org Delivered-To: apmail-directory-api-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 300C218AB8 for ; Tue, 18 Aug 2015 12:33:23 +0000 (UTC) Received: (qmail 61518 invoked by uid 500); 18 Aug 2015 12:33:23 -0000 Delivered-To: apmail-directory-api-archive@directory.apache.org Received: (qmail 61483 invoked by uid 500); 18 Aug 2015 12:33:23 -0000 Mailing-List: contact api-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@directory.apache.org Delivered-To: mailing list api@directory.apache.org Received: (qmail 61469 invoked by uid 99); 18 Aug 2015 12:33:23 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2015 12:33:23 +0000 Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B853F1A04D2 for ; Tue, 18 Aug 2015 12:33:22 +0000 (UTC) Received: by igfj19 with SMTP id j19so81352092igf.0 for ; Tue, 18 Aug 2015 05:33:22 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.77.49 with SMTP id p17mr20685394igw.72.1439901202129; Tue, 18 Aug 2015 05:33:22 -0700 (PDT) Received: by 10.36.31.204 with HTTP; Tue, 18 Aug 2015 05:33:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 Aug 2015 20:33:22 +0800 Message-ID: Subject: Re: Operations listener to trigger custom scripts From: Kiran Ayyagari To: api@directory.apache.org Content-Type: multipart/alternative; boundary=047d7bdc9e62aa2da9051d951f15 --047d7bdc9e62aa2da9051d951f15 Content-Type: text/plain; charset=UTF-8 On Tue, Aug 18, 2015 at 8:23 PM, Tristan Zwingelstein < tristan.zwingelstein@gmail.com> wrote: > Dear Community, > > is there a way with the API to react on ldap events like "create", "delete" > or "modify". > Because I would like to trigger some custom java scripts after these ldap > events. > If yes do you have a simple Java example available ? Or at least what are > the classes to use ? > > do a search by sending a SearchRequest with PersistentSearchImpl control instance then just loop over the EntryCursor instance while(cursor.next()) { SearchResultEntry sre = cursor.get(); .... } Thanks in advance for your help ! > > -- > Tristan ZWINGELSTEIN > > 17 Rue Principale > 68780 Soppe-le-Bas > FRANCE > > 00 33 (0)7 83 42 23 48 > 00 41 (0)76 819 18 74 > 03 89 38 50 17 > -- Kiran Ayyagari http://keydap.com --047d7bdc9e62aa2da9051d951f15--