Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 50536 invoked from network); 15 Aug 2007 03:02:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Aug 2007 03:02:59 -0000 Received: (qmail 79337 invoked by uid 500); 15 Aug 2007 03:02:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 79320 invoked by uid 500); 15 Aug 2007 03:02:56 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 79311 invoked by uid 99); 15 Aug 2007 03:02:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 20:02:56 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nandana.cse@gmail.com designates 209.85.198.188 as permitted sender) Received: from [209.85.198.188] (HELO rv-out-0910.google.com) (209.85.198.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 03:02:55 +0000 Received: by rv-out-0910.google.com with SMTP id k20so1635760rvb for ; Tue, 14 Aug 2007 20:02:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KNw0v+7GyA46a9EU0cQNCu6QVmfUAtgsKEZGqhFG4Hfg/GZgurR5gx+LwSsb+LTBkx1m4uYslCHtPCadS+kr57nVQzcsu8+4unn6IUaEBCeGdoJ0tcvNOFx/g6JJG289e7iZiDKiQII2QBIVMy7jWZMyVkNEL2DVAsvpYaJJxf4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Un3Eas65K9sWtrieDOKmzDXJ8HLHaiRk4YAgq+wqgcI/L/u+O1KchIoS2pmBXnrpNQjMWVCr8gQKcmFG1Lojhfj0w6giT7szT6ZisN67At6s9zrhV55v7RLCvsJdj89Ln7/ucF2BcYhZP0lFog5vqoqtuTD0ODV6MHLy9RxKHkQ= Received: by 10.115.89.1 with SMTP id r1mr25204wal.1187143164406; Tue, 14 Aug 2007 18:59:24 -0700 (PDT) Received: by 10.114.159.10 with HTTP; Tue, 14 Aug 2007 18:59:24 -0700 (PDT) Message-ID: <9e2fff830708141859s400236d1la83c0d626b11dcf6@mail.gmail.com> Date: Tue, 14 Aug 2007 18:59:24 -0700 From: "Nandana Mihindukulasooriya" To: users@jackrabbit.apache.org Subject: Re: Using Observation In-Reply-To: <46C194F5.4030404@gmx.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_48788_16676007.1187143164362" References: <9e2fff830708120017w57c47f7ex8e3b89178b65f6d6@mail.gmail.com> <46C1826E.2080800@gmx.net> <46C194F5.4030404@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_48788_16676007.1187143164362 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Marcel, Thanks a lot for the quick reply. this depends on the configuration. with the default configuration, > jackrabbit > simply allows everyone to login and modify anything. > How can we edit the configuration to specify those details ? I don't need that at the moment in my app but was wondering as those details under Security Configuration and Access Managers sections couldn't be found in the configuring Jackrabbit page yet. In my app, I use Session session = repository.login(new SimpleCredentials("username","password".toCharArray())); to initiate a session. Does this "username" and "password" is used in Jackrabbit ? If then, for what purpose ? > I guess the workaround is to manually check the node type of the added node and > react accordingly. So I am doing a check for primary type of the Node as given below. Is there a more efficient way to do this ? String path = event.getPath(); // Removing the initial '/' to make a relative path path = path.substring(1, path.length()); Node eventNode = rootNode.getNode(path); if ( eventNode.getPrimaryNodeType().getName().equals("blog:comment")) { } Thanks once again, Nandana ------=_Part_48788_16676007.1187143164362--