Re: [RT] API for modifying resources

2012-07-31 Thread Bertrand Delacretaz
On Mon, Jul 30, 2012 at 12:53 PM, Carsten Ziegeler cziege...@apache.org wrote: 2012/7/30 Felix Meschberger fmesc...@adobe.com: ... * Any persistence exceptions are wrapped into one of the defined runtime exceptions (e.g. ValueFormatException wrapped into ClassCastException) ... ...I

Re: Remarks on Resource API Rev. 1366999

2012-07-31 Thread Bertrand Delacretaz
On Mon, Jul 30, 2012 at 4:56 PM, Carsten Ziegeler cziege...@apache.org wrote: With ResourceResolver#create/remove we throw UnsupportedOperationException and PersistenceException. The first one if the underlying resource provider does not allow resource modifications, the second if anything

Re: Remarks on Resource API Rev. 1366999

2012-07-31 Thread Carsten Ziegeler
2012/7/31 Bertrand Delacretaz bdelacre...@apache.org: On Mon, Jul 30, 2012 at 4:56 PM, Carsten Ziegeler cziege...@apache.org wrote: With ResourceResolver#create/remove we throw UnsupportedOperationException and PersistenceException. The first one if the underlying resource provider does not

RE: [RT] API for modifying resources

2012-07-31 Thread Mike Müller
Hi, I'm currently working on CRUD support for Sling based on the resource API. Current trunk contains already a version of it. I'm wondering what the best api for modifying resources is. Right now, the idea is to adapt a resource to ModifiableValueMap which is an extension of the

Re: [RT] API for modifying resources

2012-07-31 Thread Bertrand Delacretaz
On Tue, Jul 31, 2012 at 9:48 AM, Mike Müller mike...@mysign.ch wrote: ...that's what I meant in my post before, that update AND commit is a little complicated. On the other hand, if we want to introduce a transient space as Carsten proposes, there have to be two different methods Really?

RE: [RT] API for modifying resources

2012-07-31 Thread Mike Müller
-Original Message- From: Bertrand Delacretaz [mailto:bdelacre...@apache.org] Sent: Tuesday, July 31, 2012 9:54 AM To: dev@sling.apache.org Subject: Re: [RT] API for modifying resources On Tue, Jul 31, 2012 at 9:48 AM, Mike Müller mike...@mysign.ch wrote: ...that's what I meant in

Re: [RT] API for modifying resources

2012-07-31 Thread Carsten Ziegeler
Just an update on update :) I've changed the implementation and now to change a resource, you adapt it to a ModifiableValueMap change the properties through put/putAll/remove, this goes into the transient space and then finally you call ResourceResolver#commit. I think this is a nice and easy

Re: [RT] API for modifying resources

2012-07-31 Thread Bertrand Delacretaz
On Tue, Jul 31, 2012 at 10:58 AM, Carsten Ziegeler cziege...@apache.org wrote: ...I've changed the implementation and now to change a resource, you adapt it to a ModifiableValueMap change the properties through put/putAll/remove, this goes into the transient space and then finally you call

[jira] [Created] (SLING-2550) OsgiInstallerImpl needs more DEBUG logging

2012-07-31 Thread Bertrand Delacretaz (JIRA)
Bertrand Delacretaz created SLING-2550: -- Summary: OsgiInstallerImpl needs more DEBUG logging Key: SLING-2550 URL: https://issues.apache.org/jira/browse/SLING-2550 Project: Sling Issue

[jira] [Commented] (SLING-2550) OsgiInstallerImpl needs more DEBUG logging

2012-07-31 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13425641#comment-13425641 ] Carsten Ziegeler commented on SLING-2550: - Please also have a look at the changes

Jenkins build is still unstable: sling-trunk-1.5 » Apache Sling Launchpad Testing #1728

2012-07-31 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.5/org.apache.sling$org.apache.sling.launchpad.testing/1728/

Jenkins build is still unstable: sling-trunk-1.5 » Apache Sling Launchpad Testing WAR version #1728

2012-07-31 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.5/org.apache.sling$org.apache.sling.launchpad.testing-war/1728/

Jenkins build is still unstable: sling-trunk-1.5 #1728

2012-07-31 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.5/changes

[jira] [Resolved] (SLING-2550) OsgiInstallerImpl needs more DEBUG logging

2012-07-31 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz resolved SLING-2550. Resolution: Fixed Added/reviewed DEBUG logs in revision 1367577

Jenkins build is still unstable: sling-trunk-1.5 » Apache Sling Launchpad Testing #1729

2012-07-31 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.5/org.apache.sling$org.apache.sling.launchpad.testing/1729/

Jenkins build is still unstable: sling-trunk-1.5 » Apache Sling Launchpad Testing WAR version #1729

2012-07-31 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.5/org.apache.sling$org.apache.sling.launchpad.testing-war/1729/

Jenkins build is still unstable: sling-trunk-1.5 #1729

2012-07-31 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.5/changes