Create Live Copy in Java Code?
I'm trying to create a live copy of a page but in a java class in my Core bundle. I'm struggling to find the correct java classes to do this. So far I have found the TemplateRolloutService in com.adobe.cq.social.blueprint.api which looks the most promosing although not sure why it is in the social package!
However I can't find any documentation, I have got the unobfuscated JAR from Daycare but the class has no javaDoc and the input params to the methods are not named helpfully in my decompiler e.g.
Page createLiveCopy(SlingRepository var1, ResourceResolver var2, RolloutManager var3, String var4, String var5, String var6, String var7, ValueMap var8) throws OperationException, RepositoryException, WCMException;
So two questions really:
- How can I create a live copy in my java code
- What is the best way to understand the java API's available to me in these sort of situations? I tend to struggle with AEM when trying to figure out how to do more complex operations in the backend java code and often am resorting to decompiling the JAR, which in this case isn't helping!