since ‎20-01-2018
‎10-12-2019
santhiswaroopg
Level 1
Re: How to create LiveCopy of a page with rollout configuration using Java?
Avatar

santhiswaroopg

santhiswaroopg
- Adobe Experience Manager
You can try using above code

Views

4.0K

Likes

0

Replies

0
Re: How to create LiveCopy of a page with rollout configuration using Java?
Avatar

santhiswaroopg

santhiswaroopg
- Adobe Experience Manager
@Referenceprivate RolloutManager rolloutManager;Resource resource = resourceResolver.getResource(sourcePath);LiveRelationshipManager liveRelationshipManager = resourceResolver.adaptTo(LiveRelationshipManager.class);Collection liveRelationShips;liveRelationShips = liveRelationshipManager.getLiveRelationships(resource, Trigger.ROLLOUT, null, true);if (null != liveRelationShips) {// get each relationshipfor (LiveRelationship liveRelationship : liveRelationShips) {rolloutManager.rollout(resourceReso...

Views

4.0K

Like

1

Replies

0
Likes from