Skip to main content
1-Visitor
July 31, 2018
Question

Enable audit recording for custom utility that downloads the PDF represenations

  • July 31, 2018
  • 1 reply
  • 3073 views

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

1 reply

16-Pearl
August 1, 2018

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.

Sri1-VisitorAuthor
1-Visitor
August 1, 2018

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

16-Pearl
August 9, 2018

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