I have more then 100 pages in my AEM site with the name containing lots of '_-' together so for sanitizing the page name i have written a java servlet which will compare the page title of the page with the sanitized title and if it does not match it will copy the page with correct title to the same location and delete the old page.
Question- Is there any way so that i can publish all the pages programmatic which are going through title change.
I am using pageManager.copy() and pageManager.delete().