tag:blogger.com,1999:blog-5778419059463879376.post8600816181296322903..comments2024-03-18T22:43:30.073-07:00Comments on Adobe CQ/Adobe AEM: How to use impression Service In CQ/AEMYogihttp://www.blogger.com/profile/13222275932054732457noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-5778419059463879376.post-58229882650884519872016-02-01T06:44:31.967-08:002016-02-01T06:44:31.967-08:00If you're talking the "Activate Tree"...If you're talking the "Activate Tree" UI - I can select /var/statistics/pages from there, but it will not replicate those over (wondering if it only includes certain node types?) Even if it did work, though, writing a scheduler service would still be necessary.<br /><br />On a different note, have you considered submitting your Replication ServiceHelper to ACS AEM Commons? They seem to be very open to pull requests.Anonymoushttps://www.blogger.com/profile/15330957097586458453noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-18021462853031128292016-01-29T14:34:16.770-08:002016-01-29T14:34:16.770-08:00Hello Brett,
CQ support replicate tree feature to...Hello Brett,<br /><br />CQ support replicate tree feature to replicate part of tree using UI. More information https://docs.adobe.com/docs/en/cq/5-6-1/wcm/page_publish.html note that for some reason this UI is missing in AEM6.1 but you can simply create package of this from CQ5.6.1 and install it on AEM6.1<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-22644875925887080932016-01-29T11:36:19.559-08:002016-01-29T11:36:19.559-08:00Wow, this is absolutely fantastic. This should be...Wow, this is absolutely fantastic. This should be everything I need! Thank you very much!<br /><br />I guess then the only question remaining is...why does AEM not have a UI function to do something like this, when it seems like such a pretty common use case to want to replicate nodes from author to publish (outside of page publishing, which of course is part of the UI).<br /><br />Barring OOTB UI support, the Replication Service/Helper you have written look to be quite valuable for implementing this via code. Have you considered submitting these to ACS AEM Commons (http://adobe-consulting-services.github.io/acs-aem-commons/)?Anonymoushttps://www.blogger.com/profile/15330957097586458453noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-68657625112272719632016-01-29T11:35:39.918-08:002016-01-29T11:35:39.918-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/15330957097586458453noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-58648197465622445032016-01-29T11:21:58.045-08:002016-01-29T11:21:58.045-08:00Here is example of replicator and tree activation:...Here is example of replicator and tree activation:<br />https://gist.github.com/yupadhyay/48a62cf34eaf762a72fa<br />https://gist.github.com/yupadhyay/0f1cba64fbb32cd7f9c7<br /><br />Here is example of scheduler:<br />http://wemcode.wemblog.com/cq-scheduler-example<br /><br />Let me know if that helpsYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-80301796714121561892016-01-29T10:59:58.321-08:002016-01-29T10:59:58.321-08:00Looking at Replicator, I see it's a service th...Looking at Replicator, I see it's a service that I can simply inject and use (rather than implement). So that's simple enough. I think then I just need to understand how best to trigger it on a daily basis.Anonymoushttps://www.blogger.com/profile/15330957097586458453noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-49949431590572788502016-01-29T08:47:40.426-08:002016-01-29T08:47:40.426-08:00Thanks for the quick reply Yogesh!
Can you point ...Thanks for the quick reply Yogesh!<br /><br />Can you point me at any Adobe documentation on coding an implementation of Replicator? Also, is it possible to directly schedule the replicator to run once per day, or would that require hooking into the Sling Scheduler?<br /><br />Any code examples you have handy would be greatly appreciated.<br /><br />Thanks again!Anonymoushttps://www.blogger.com/profile/15330957097586458453noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-63680355848519106652016-01-28T15:53:03.144-08:002016-01-28T15:53:03.144-08:00Hello Brett,
To replicate you can simply use repl...Hello Brett,<br /><br />To replicate you can simply use replicator service. https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/replication/Replicator.html Just store all document in a arraylist or something and then replicate them all using above service. Let me know if you need code example for this.<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-76778106863812167412016-01-28T12:46:03.660-08:002016-01-28T12:46:03.660-08:00Yogesh,
Can you please give me some pointers on h...Yogesh,<br /><br />Can you please give me some pointers on how the statistics are replicated from the author to the publish instance? I see your comment "Once it is on author instance you can use replicator service to replicate to all other publish instance" but not quite sure how that is done.<br /><br />Do I need to write a custom OSGi service that hooks into the Sling Scheduler, and have that service activate /var/statistics to cause it to be replicated by the Default Replication Agent?<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/15330957097586458453noreply@blogger.com