Code for Replication

Avatar

Avatar
Validate 1
Level 2
aravindS
Level 2

Likes

4 likes

Total Posts

39 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile

Avatar
Validate 1
Level 2
aravindS
Level 2

Likes

4 likes

Total Posts

39 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile
aravindS
Level 2

01-08-2019

Hi,

Anyone can help me to find the code for replicate and replicate delete in AEM.

1803941_pastedImage_0.png

Thanks in Advance,

Replies

Avatar

Avatar
Give Back 10
Employee
lmha
Employee

Likes

16 likes

Total Posts

20 posts

Correct reply

4 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Give Back 10
Employee
lmha
Employee

Likes

16 likes

Total Posts

20 posts

Correct reply

4 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
lmha
Employee

01-08-2019

Hi aravindS,

The particular code you are looking for is in the Adobe Granite CRXDE Lite (com.adobe.granite.crxde-lite) bundle -- this is not a file you will see in CRXDE Lite content tree.

Please share your use-case and requirements so we can help you out further -- I may have misunderstood your ask/intent.

Regards,

Lisa

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

01-08-2019

Yes Aravind. As Lisah told, please share your use-case so that we can help you with what can be done. Most of the functionalities in AEM are in bundles which you cannot edit via CRXDE-Lite. That said , we can always right custom logic as per our requirement. But to customize an OOTB functionality is least recommended unless it is universally applicable for all projects in your Server.

Thanks

Veena

Avatar

Avatar
Validate 1
Level 2
aravindS
Level 2

Likes

4 likes

Total Posts

39 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile

Avatar
Validate 1
Level 2
aravindS
Level 2

Likes

4 likes

Total Posts

39 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile
aravindS
Level 2

02-08-2019

Hi All,

For my case i need to add the new property whenever the users "replicate/replicate Delete" like now it was adding the property as replicatedAction/replicatedby like that i need to add the "replicateBySystem"

Thank you..

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

02-08-2019

Those properties won't be added in publishers

You can simply listen to the event and add properties

http://localhost:4504/system/console/events

com/day/cq/replication
modificationDatejava.util.GregorianCalendar[time=1564749883268,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/Berlin",offset=3600000,dstSavings=3600000,useDaylight=true,transitions=143,lastRule=java.util.SimpleTimeZone[id=Europe/Berlin,offset=3600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2019,MONTH=7,WEEK_OF_YEAR=31,WEEK_OF_MONTH=1,DAY_OF_MONTH=2,DAY_OF_YEAR=214,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=2,HOUR_OF_DAY=14,MINUTE=44,SECOND=43,MILLISECOND=268,ZONE_OFFSET=3600000,DST_OFFSET=3600000]
event.topicscom/day/cq/replication
paths/content/AEM64App/fr/jcr:content
typeACTIVATE
userIdadmin

If you are looking for this option for particular workflows then implement process for replication and get payload adapt to Node API and property

Adobe Experience Manager Help | Replicating Adobe Experience Manager Content using the Replication A...

Avatar

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
joeb21688728
Level 4

02-08-2019

Great answer. This document shows how to use the Experience Manager Replication API and should be marked solved. This API article is not located under the API category of the Experience League website which contains no API documents.

Avatar

Avatar
Validate 1
Level 2
aravindS
Level 2

Likes

4 likes

Total Posts

39 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile

Avatar
Validate 1
Level 2
aravindS
Level 2

Likes

4 likes

Total Posts

39 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile
aravindS
Level 2

07-08-2019

Hi,

My case is to add the new property... if you are replicating "/app/project/data" path... under data/jcr:content need to add property like replicationBY (property name)    username (property value)  -------

Thanks,

Aravind