how do I enforce jcr:primaryType over SlingPostServlet?
> -----Original Message----- > From: Clemens Wyss [mailto:[email protected]] > Sent: Tuesday, September 28, 2010 5:12 PM > To: '[email protected]' > Subject: RE: SlingPostServletClient, helper class? > > > >SlingIntegrationTestClient > doesn't look bad, I'll give it a try > > Thanks > Clemens > > > -----Original Message----- > > From: Bertrand Delacretaz [mailto:[email protected]] > > Sent: Tuesday, September 28, 2010 2:49 PM > > To: [email protected] > > Subject: Re: SlingPostServletClient, helper class? > > > > > > On Tue, Sep 28, 2010 at 2:44 PM, Clemens Wyss > > <[email protected]> wrote: > > > Do we somewhere in the sling-repo/sources have a helper > > class for posting data to Sling(PostServlet)? > > > > I don't think so, the closest would be > > http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/te > sting/src/main/java/org/apache/sling/commons/testing/integrati > on/SlingIntegrationTestClient.java > > > > > Asked the other way round: > > given a legacy database with lots of data, how would you > inject (export/import) this data into Sling/JCR? > > Either use standard POST as you suggest, maybe exporting the legacy > content into curl POST commands, or write your own POST handler that > accepts a legacy dump format. > > -Bertrand >
