Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-27 Thread Andreas Schaefer Sr.
I never develop for Sling but a few years doing backend on AEM. So I am wondering if you used the Sling IDE Tooling (Eclipse or our IntelliJ Plugin) and debugged your code there. Did you try to use a Servlet that is bound to a Type instead of a Path? This might do what you want. Cheers - Andy

Re: Multiple Version of Commons Lang in OSGI...

2017-01-09 Thread Andreas Schaefer Sr.
I use Commons tools both version 2 and 3 together in AEM and so it should work. That said how are you installing Commons lang and which package does need it. If you have a custom package that needs commons lang 3 then you need to package it with it if it is not provided from another package.

Dynamic Resource Change Listener

2016-12-25 Thread Andreas Schaefer Sr.
Hi I would like to listen to JCR Nodes being added, modified and removed in Sling and saw that you provide the Resource Change Listener which would work perfectly but I could not figure out how to make the paths to listen for dynamic. What I would love to have is to configure an OSGi Service

Sling Resource Rendering Inheritance

2017-03-21 Thread Andreas Schaefer Sr.
Hi As a long time CQ / AEM backend developer I ran into some issues to adjust to Sling. I have a resource ‘Home Page’ that should render a JCR node as a HTML page. The Home page component then only adjust the layout of the Body and Head and the rest should be inherited from its Resource Super

Re: Fling Installation on Trunk

2017-03-28 Thread Andreas Schaefer Sr.
017, at 1:22 AM, Oliver Lietz <apa...@oliverlietz.de> wrote: > > On Monday 27 March 2017 13:05:38 Andreas Schaefer Sr. wrote: >> Hi >> >> I tried to install Fling from the Samples but failed with the latest Sling. >> >> First I had to install Sling Messaging a

Re: Sling Resource Rendering Inheritance

2017-03-22 Thread Andreas Schaefer Sr.
Yeah, the have a big “Download Now” button and that is not the file. I think the reason was that I use Safari w/o Flash and then the link won’t show. That said your code words and the major difference I saw is that the inheritance only works if it is in the /apps//components folder. I tried that

Re: Sling Resource Rendering Inheritance

2017-03-23 Thread Andreas Schaefer Sr.
> > https://www.dropbox.com/s/tw0edw4dddi9ksh/page-example-3.zip?dl=1 > <https://www.dropbox.com/s/tw0edw4dddi9ksh/page-example-3.zip?dl=1> > > Greets, > Roy > >> On 22 Mar 2017, at 19:48, Andreas Schaefer Sr. <schaef...@me.com >> <mailto:schaef...@m

Use of global HTL object log

2017-03-29 Thread Andreas Schaefer Sr.
Hi In the HTL documentation I saw that there is a global HTL object log for the SLF4J logger. How would I use that logger? Cheers - Andy

Re: Use of global HTL object log

2017-03-31 Thread Andreas Schaefer Sr.
https://docs.adobe.com/docs/en/htl/docs/use-api/java.html > [1] https://docs.adobe.com/docs/en/htl/docs/use-api/javascript.html > > On Wed, Mar 29, 2017 at 8:57 PM, Andreas Schaefer Sr. <schaef...@me.com> > wrote: > >> Hi >> >> In the HTL documenta

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-04 Thread Andreas Schaefer Sr.
Yes, I was thinking that might be the issue. Do you guess have already something on Git? Thanks - Andy Schaefer > On Apr 4, 2017, at 12:13 AM, Robert Munteanu wrote: > > On Tue, 2017-04-04 at 08:32 +0200, Roy Teeuwen wrote: >> Hey Andy, >> >> The license inside might not

Securing a Servlet w/o Resource

2017-04-10 Thread Andreas Schaefer Sr.
Hi If I have a servlet that is not based on a resource how would I secure access in Sling? This is what I came up with on doPost(): userManager = AccessControlUtil.getUserManager(session); Authorizable authorizable = userManager.getAuthorizable(request.getUserPrincipal()); if(authorizable ==

Re: Securing a Servlet w/o Resource

2017-04-11 Thread Andreas Schaefer Sr.
and a redeployment will wipe that. Is that by design? Thanks - Andy Schaefer > On Apr 11, 2017, at 12:27 AM, Bertrand Delacretaz <bdelacre...@apache.org> > wrote: > > Hi, > > On Mon, Apr 10, 2017 at 10:15 PM, Andreas Schaefer Sr. <schaef...@me.com> >

Re: Fling Installation on Trunk

2017-03-31 Thread Andreas Schaefer Sr.
ver Lietz <apa...@oliverlietz.de> wrote: > > On Monday 27 March 2017 13:05:38 Andreas Schaefer Sr. wrote: >> Hi >> >> I tried to install Fling from the Samples but failed with the latest Sling. >> >> First I had to install Sling Messaging and Sling Query b

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-01 Thread Andreas Schaefer Sr.
Hi Greg One difference between an JCR Content Package (ZIP file) is that you can use the exploded tree inside the Eclipse or IntelliJ plugin and edit / deploy / import (from server) one file at a time. With the Bundle Content you have to deploy it as an entire bundle. If working with JSon you

Re: How to Execute a Sling Replication

2017-07-25 Thread Andreas Schaefer Sr.
omponent you are configuring in the OSGI components > console (path is /system/console/components). The references marked as > "Unsatisfied" must be resolved, typically by adding a configuration for the > missing referenced service. > > HTH, > > Timothee > &g

How to Execute a Sling Replication

2017-07-24 Thread Andreas Schaefer Sr.
Hi I managed to build and install the Sling Distribution including the sample package. Everything looks fine but I am not sure how to start a replication of a given node. I want to replicate a given node on the Author to the Publish instance(s) defined in the used agent. How would I do that from

Re: How to Execute a Sling Replication

2017-07-24 Thread Andreas Schaefer Sr.
t; https://github.com/apache/sling/tree/trunk/contrib/extensions/distribution#forward-distribution > > Regards, > > Timothee > > 2017-07-24 16:46 GMT+02:00 Andreas Schaefer Sr. <schaef...@me.com>: > >> Hi >> >> I managed to build and install th

Re: Service user for sling pipes

2017-05-17 Thread Andreas Schaefer Sr.
I use a Service User and packaged it up in a Content Package which deploys just fine. The only drawback is that if you need to set permissions with it then you might end up with an issue where the user is created after the policies are created which leads to the policies not being set (no user