Solved
need to block a content path and child nodes from public access but allow the same path in pojo classes
I have created a custom node /content/resources which is a Page
It has child nodes like
/content/resources/1
/content/resources/2
/content/resources/.....
Point1:-
and also block the child pages or nodes from public access
Point2:-
But I have requirement that in a Pojo class I need to call the same above url (http://<hostname>//content/ resources.html ) for some processing
So how do I achieve this .Please provide your inputs .