Hi Raffaele, On Mon, 2024-09-23 at 16:32 +0000, Raffaele Gambelli wrote: > Hi all, > > I don't understand when using .with methods on Jcr and when on Oak, > some of them are duplicated, and with(@NotNull SecurityProvider > securityProvider) called on Oak has no effect (it is totally ignored) > while in Jcr it works > > > Repository repo = new Jcr(new Oak()).createRepository(); > > Could you explain me which should be the best practice in using those > methods and could you please update pages like this > https://jackrabbit.apache.org/oak/docs/construct.html to explain > better the basic usage?
I don't have a direct answer for you, but you can take a look at how we configure the Oak repository in Sling https://github.com/apache/sling-org-apache-sling-jcr-oak-server/blob/master/src/main/java/org/apache/sling/jcr/oak/server/internal/OakSlingRepositoryManager.java We only configure the 'Jcr' object and allow it to configure the 'Oak' instance implicitly. Hope this helps, Robert > > > Thank you very much > > Cordiali saluti / Best regards, > > Raffaele Gambelli > Senior Java Developer > E raffaele.gambe...@cegeka.com<mailto:raffaele.gambe...@cegeka.com> > > > > [ > https://2655225.fs1.hubspotusercontent-na1.net/hubfs/2655225/0.0%20Ceg > eka%20(new)/1.%20Visuals/Email%20Signatures/Annual_Report_Visuals_202 > 3_Email%20Banner%201.png]< > https://www.cegeka.com/it/annual-report-2023?utm_campaign=[EN]%20- > %20Annual%20Report%202023&utm_source=email%20signature%20banner&utm_m > edium=email%20signature%20banner%20annual%20report%202023> > Dichiarazione di Riservatezza > Le informazioni contenute nella mail sono riservate. Se si rende > conto di non essere il destinatario corretto della mail, la preghiamo > di segnalare l'errore al mittente e di cancellare immediatamente il > messaggio. L’utilizzo improprio di informazioni riservate può > comportare sanzioni. > Protezione dei dati personali > La informiamo che i suoi dati saranno trattati da Cegeka nel rispetto > delle disposizioni di legge applicabili (D. Lgs 196/2003 e > Regolamento UE 679/2016). Per maggiori dettagli può consultare le > nostre informative privacy al link > https://www.cegeka.com/it/informazioni-sulla-privac< > https://www.cegeka.com/it/informazioni-sulla-privacy>