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 63AD89CA2 for ; Mon, 12 Mar 2012 11:16:01 +0000 (UTC) Received: (qmail 82566 invoked by uid 500); 12 Mar 2012 11:16:01 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 82537 invoked by uid 500); 12 Mar 2012 11:16: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 82529 invoked by uid 99); 12 Mar 2012 11:16:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 11:16: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; Mon, 12 Mar 2012 11:15: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 361BC1C70B for ; Mon, 12 Mar 2012 11:15:38 +0000 (UTC) Date: Mon, 12 Mar 2012 11:15:38 +0000 (UTC) From: "Thomas Mueller (Commented) (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <933655551.1683.1331550938223.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1207749983.39214.1331224437041.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OAK-5) JCR bindings for Oak MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OAK-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227434#comment-13227434 ] Thomas Mueller commented on OAK-5: ---------------------------------- > if I "mvn eclipse:eclipse" the parent project and open it Thanks, I didn't know about this. Well, I give up. Create as many components and jar files as you like (oak-jcr, oak-spi, oak-core, oak-commons, and more if you want to). I still don't see what problem we want to solve here, but I will go with whatever you guys decide. > 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 > Labels: jcr > Fix For: 0.1 > > > One of the proposed goals for the 0.1 release is at least a basic JCR binding for Oak. Most of that already exists in /jackrabbit/sandbox, we just need to decide where and how to place it in Oak. I think we should either put it all under o.a.j.oak.jcr in oak-core, or create a separate oak-jcr component 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 = JcrUtils.getRepository(...); > Session session = 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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira