Temp solution added for getting all pages under publication
Merged after temp solution for getAllPages of pub.