cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Enable audit recording for custom utility that downloads the PDF represenations

Highlighted
Sri
Regular Member

Enable audit recording for custom utility that downloads the PDF represenations

We have a custom utility using which we can download the PDF representations in bulk.

We are downloading the representation using the API  :

RepresentationHelper.service.getDefaultRepresentation()

 

We have enabled the audit logging for Download (READ_CONTENT) and View(VIEW) events  in the file configAudit.xml

We need to have this information logged in the audit report.

Is it possible accomplish this ?

 

 

Thanks,

Srikanth

4 REPLIES 4

Re: Enable audit recording for custom utility that downloads the PDF represenations

Suggest to take a test for it. 

 

I think /wt.representation.ViewEvent/VIEW event will be called when user views the representation.

 

But I am not sure if the /wt.content.ContentServiceEvent/READ_CONTENT event will be called when customization utility to get representation. Thanks.

Re: Enable audit recording for custom utility that downloads the PDF represenations

Thanks for the response.

 

We tried with the API VisualizationHelper.getRepresentation()  to download the default representation. However we dont see any events recorded in the audit report.

 

Regards,

Sri

Re: Enable audit recording for custom utility that downloads the PDF represenations

So the  /wt.content.ContentServiceEvent/READ_CONTENT event  will not be invoked when downloading representation. The event seems to only for WTDocument content download action. I search many PTC materials and don't find presentation download event. Suggest to add customized code in download page code to record download times

 

 

Re: Enable audit recording for custom utility that downloads the PDF represenations

 
We tried to generate the URL using the methods getViewContentURL() and getDownloadURL() from the class  ContentHelper to see if any event is generated.
 
We tried to get the URL and on opening the URL in the browser, the View event is triggered and its logged in security audit report .These was a manual steps but must be automated from the code .
 
We tried to open a http connection to the generated url and however this doesnt work and doesnt trigger any events
Any other suggestions on the approach ?