Hi I want to activate page through workflow in aem 6.5. I have created a java class and added following line:"replicator.replicate(session, ReplicationActionType.ACTIVATE, payloadPath);"still page is not activating. Any idea what needs to be done? RegardsRK
I did this - newPage = getPageManager().create(pagePath, "ABC", templatePath, pageTitle); without using resourceResolver it worked.Now how do I add HTML into it, programmatically?
@referenceprivate ResourceResolverFactory resourceResolverFactory;private static final String SERVICE_USER = "service-user"; //create new service user with required permissionprivate static final Map<String, Object> SERVICE_USER_DETAILS = ImmutableMap.of(ResourceResolverFactory.SUBSERVICE, (Object)...
Thanks. I have gone through the link provided, this line is giving depricated resolver = resolverFactory.getAdministrativeResourceResolver(null);. How do I replace this line?