Posts

Showing posts with the label alfresco audit

Get Audit Data using java webscript

1. Create file at location: /config/alfresco/extension/templates/webscripts/org/alfresco/record.get.desc.xml <webscript>   <shortname>Audit Data Scripts</shortname>   <description>Record Audit Information</description>   <url>/api/test/extensions/record/{store_type}/{store_id}/{id}/{userName}/{action}/{site}</url>   <authentication>user</authentication>   <format default="">argument</format> </webscript> 2. Create entry at location to call the webscript: /source/web/components/test/demo.js // Setup the URL to call for a GET web script that will record this action var uri = YAHOO.lang.substitute(Alfresco.constants.PROXY_URI + "api/test/extensions/record/{store_type}/{store_id}/{id}/{userName}/{action}/{site}", { store_type: store, store_id: store_type, site: site, id: nodeid, userName: user, action: actionName });   ...