Expand my Community achievements bar.

SOLVED

need to block a content path and child nodes from public access but allow the same path in pojo classes

Avatar

Level 2
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:-
 
Now I  need a way to  block the  page   from public access http://<hostname>//content/resources.html 
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 .
1 Accepted Solution

Avatar

Correct answer by
Level 9

For Point 1 , you need to set the permissions at page level to allow/deny the access. 

You can view more details on how to do permissioning at

http://docs.adobe.com/docs/en/cq/5-6/administering/security.html

For Point 2, You can access the JCR repository through api. I suggest you to call http://<hostname>//content/resources.json instead of html

it will be much easier to parse json format than html

Details on how to access CRX is defined in the following link

http://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

For Point 1 , you need to set the permissions at page level to allow/deny the access. 

You can view more details on how to do permissioning at

http://docs.adobe.com/docs/en/cq/5-6/administering/security.html

For Point 2, You can access the JCR repository through api. I suggest you to call http://<hostname>//content/resources.json instead of html

it will be much easier to parse json format than html

Details on how to access CRX is defined in the following link

http://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

Avatar

Level 2

Thanks for the Reply.

I wanted to know if I can do this at Dispatcher level ,as then I need not do anything at http://docs.adobe.com/docs/en/cq/5-6/administering/security.html .

If I can achieve it at Dispatcher level then what all setting I must do to achieve the same.

Now  how to access the http://<hostname>//content/resources.html using the JCR repository through api.  Should I change the session of anonymous to admin session in Servlets/Pojo class.