Freemarker Template - Audit

cancel
Showing results for 
Search instead for 
Did you mean: 

Freemarker Template - Audit

resplin
Intermediate
0 0 1,560

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 NameApplicationServiceMethodTimestampFailedMessageArg 1Arg 2Arg 3Arg 4Arg 5ReturnThowableTX
${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 NameApplicationServiceMethodTimestampFailedMessageArg 1Arg 2Arg 3Arg 4Arg 5ReturnThowableTX
${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