cancel
Showing results for 
Search instead for 
Did you mean: 

Bypass auditing in WebScript

garryw
Champ in-the-making
Champ in-the-making
Hi,

I have a webscript that locates a Node via the search API however my problem is that every time the node is accessed an audit entry is generated for action READ.

My understanding is that a Java backed webscript could use the nodeService bean rather than the proxied NodeService bean to bypass the auditing however I am not sure whether this is possible through a DeclarativeWebScript.

So the question I have is: can a node be accessed via a webscript and bypass the auditing

Any help is greatly appreciated

Garry
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Yes it is possible since auditing is implemented by interceptors.   However you will want the security and language interceptors.  So be careful.

garryw
Champ in-the-making
Champ in-the-making
Thanks for the quick response.

Can you give me any pointers for where this would need to be achieved? I am not 100% sure how the declarative web scripts are setup to access the Java services in this way.

Thanks again

mrogers
Star Contributor
Star Contributor
Have a look at the spring definitions for the node service.    See where auditing is injected.   You may want to introduce your own node service or an existing one may be suitable.   From memory mlNodeService may be what you want.