RE: [sling/collection] Properties

2013-07-28 Thread Amit.. Gupta.
13 17:20 To: dev@sling.apache.org Subject: Re: [sling/collection] Properties Hi Amit I managed to get things working with the APIs you specified, however I find the ResourceCollection API a little inconsistent. For example there is a mixed concept between the actual resource and the sling:member

Re: [sling/collection] Properties

2013-07-26 Thread Ben Helleman
Hi Amit I managed to get things working with the APIs you specified, however I find the ResourceCollection API a little inconsistent. For example there is a mixed concept between the actual resource and the sling:member reference. Which is why I ended up over looking getProperties. My initia

Re: [sling/collection] Properties

2013-07-24 Thread Justin Edelson
IIUC, what Ben is asking for is a void setProperties(Map properties); which will set the properties on all resources in the collection. Seems like a good idea to me. Justin On Wed, Jul 24, 2013 at 9:43 PM, Amit.. Gupta. wrote: > ResourceCollection has > > /** > * Creates a new entry in

RE: [sling/collection] Properties

2013-07-24 Thread Amit.. Gupta.
ResourceCollection has /** * Creates a new entry in the collection at the last position and add a reference to resource * in the entry. * Changes are transient & have to be saved by calling resolver.commit() * * @param resource resource to be added * @param propertie