Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
Freemarker ExamplesExamples
Description
This template can be called on a document. It displays all stored information in the audit trail of the document.
Screenshot
Audit_Template.gif
Template
Full version (too much noise, but you will see what's happening)
Current Document Audit Info
Name: ${document.name}
User Name | Application | Service | Method | Timestamp | Failed | Message | Arg 1 | Arg 2 | Arg 3 | Arg 4 | Arg 5 | Return | Thowable | TX |
---|
${t.userIdentifier} | ${t.auditApplication} | ${t.auditService} | | ${t.auditMethod} | | ${t.date} | ${t.fail?string('FAILED', 'OK')} | | ${t.message} | | ${t.methodArgumentsAsStrings[0]} | | ${t.methodArgumentsAsStrings[1]} | | ${t.methodArgumentsAsStrings[2]} | | ${t.methodArgumentsAsStrings[3]} | | ${t.methodArgumentsAsStrings[4]} | | ${t.returnObjectAsString} | | ${t.throwableAsString} | | ${t.txId} |
Current Space Audit Info:
Name: ${space.name}
User Name | Application | Service | Method | Timestamp | Failed | Message | Arg 1 | Arg 2 | Arg 3 | Arg 4 | Arg 5 | Return | Thowable | TX |
---|
${t.userIdentifier} | ${t.auditApplication} | ${t.auditService} | | ${t.auditMethod} | | ${t.date} | ${t.fail?string('FAILED', 'OK')} | | ${t.message} | | ${t.methodArgumentsAsStrings[0]} | | ${t.methodArgumentsAsStrings[1]} | | ${t.methodArgumentsAsStrings[2]} | | ${t.methodArgumentsAsStrings[3]} | | ${t.methodArgumentsAsStrings[4]} | | ${t.returnObjectAsString} | | ${t.throwableAsString} | | ${t.txId} |
Requirements
Alfresco Version 2.1.x It uses standard functionality provided in this version of Alfresco.
Source