Ignore deactivated nodes in Author
Hello Everyone,
We have a usecase where I have to create a report(json) from content folder in author instance. This report should contain only those nodes which are activated and ignore the deactivated nodes.
Currently the code which I have written is creating the JSON file correctly (using TidyJSONWriter) but having both (activated and deactivated content).
Iterator<Resource> itearator = this.resourceResolver.findResources(String.format(MY_QUERY), XPATH);
Is there any api available that gives only the list of deactivated content and I can ignore that list in my Java function while creating json file?