From oak-dev-return-128-apmail-jackrabbit-oak-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Mar 14 13:39:01 2012 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 9867C9B27 for ; Wed, 14 Mar 2012 13:39:01 +0000 (UTC) Received: (qmail 74948 invoked by uid 500); 14 Mar 2012 13:39:01 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 74916 invoked by uid 500); 14 Mar 2012 13:39:01 -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 74907 invoked by uid 99); 14 Mar 2012 13:39:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 13:39:01 +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; Wed, 14 Mar 2012 13:38:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3C4F91F533 for ; Wed, 14 Mar 2012 13:38:38 +0000 (UTC) Date: Wed, 14 Mar 2012 13:38:38 +0000 (UTC) From: =?utf-8?Q?Michael_D=C3=BCrig_=28Assigned=29_=28JIRA=29?= To: oak-dev@jackrabbit.apache.org Message-ID: <1535371297.12750.1331732318355.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1207749983.39214.1331224437041.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (OAK-5) JCR bindings for Oak 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-5?page=3Dcom.atlassian.jir= a.plugin.system.issuetabpanels:all-tabpanel ] Michael D=C3=BCrig reassigned OAK-5: ------------------------------- Assignee: Michael D=C3=BCrig =20 > JCR bindings for Oak > -------------------- > > Key: OAK-5 > URL: https://issues.apache.org/jira/browse/OAK-5 > Project: Jackrabbit Oak > Issue Type: New Feature > Reporter: Jukka Zitting > Assignee: Michael D=C3=BCrig > Labels: jcr > Fix For: 0.1 > > > One of the proposed goals for the 0.1 release is at least a basic JCR bin= ding for Oak. Most of that already exists in /jackrabbit/sandbox, we just n= eed to decide where and how to place it in Oak. I think we should either pu= t it all under o.a.j.oak.jcr in oak-core, or create a separate oak-jcr comp= onent for the JCR binding. > As for functionality, it would be nice if the JCR binding was able to do = at least the following: > {code} > Repository repository =3D JcrUtils.getRepository(...); > Session session =3D repository.login(...); > try { > // Create > session.getRootNode().addNode("hello") > .setProperty("world", "hello world"); > session.save(); > // Read > assertEquals( > "hello world", > session.getProperty("/hello/world").getString()); > // Update > session.getNode("/hello").setProperty("world", "Hello, World!"); > session.save(); > assertEquals( > "Hello, World!", > session.getProperty("/hello/world").getString()); > // Delete > session.getNode("/hello").delete(); > session.save(); > assertTrue(!session.propertyExists("/hello/world")); > } finally { > create.logout(); > } > {code} -- 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