need to block a content path and child nodes from public access but allow the same path in pojo classes | Adobe Higher Education
Skip to main content
srinivas_channa
Level 2
October 16, 2015
Beantwortet

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

  • October 16, 2015
  • 2 Antworten
  • 719 Ansichten
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 .
Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von Mshaji

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

2 Antworten

MshajiCommunity AdvisorAntwort
Community Advisor
October 16, 2015

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

srinivas_channa
Level 2
October 16, 2015

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.