Content page/ path publish using Replicate API
Hi All,
We are using custom workflow to Activate page / path using Replicator API. Below is the code
java.jcr.Session session = WorkflowSession.getSession();
ReplicationOptions option = new ReplicationOptions(); option.setSynchronous(true); replicator.replicate(session, ReplicationActionType.ACTIVATE, path, option);
Question : 1- When we use AEM Activate option on selected page (right click on page and Activate) , it shows list of Assets like images, pdfs which are Outdated, Not published in the selected page in Pop-up screen, These assets also gets activated on checkbox selection, where as using the Above code, it does not include those assets and publish.
How do we handle this programmatically ? Please advice.
2- When we use Activate option, it shows who activated the page in Published column, where as when we use the custom workflow using above code, Its shows published by Administrator.
How do we ensure who Activated the page.
We have used below code to get Resource Resolver
ResourceResolver resourceResolver = resourceResolverFactory.getResourceResolver(Collection<String, Object> singletonMap(JcrResourceConstants.AUTHENTICATION_INFO_SESSION, session);
Please let me how to get the logged user name and same should show on Published column.
Appreciate your help ! Thanks.

