You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description

  • org.joget.apps.app.service.AuditTrailManager
  • Under wflow-core module
  • Service methods used to add audit trail and trigger audit trail event.

Code Sample

import org.joget.apps.app.service.AppUtil;
import org.joget.apps.app.service.AuditTrailManager;


AuditTrailManager auditTrailManager = (AuditTrailManager) AppUtil.getApplicationContext().getBean("auditTrailManager");
 
String clazz = "org.joget.sample.SamplePlugin";
String method = "SayHello";
String message = "SayHello called by user (admin)";
Class[] paramTypes = new Class[] {String.class};
Object[] args = new Object[] {"admin"};
Object returnObject = null;
 
//add audit trail and trigger an audit trail event
auditTrailManager.addAuditTrail(clazz, method, message, paramTypes, args, returnObject);

Methods

addAuditTrail
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message)

Simplify method to add audit trail and trigger audit trail event without passing method parameters and returned object

addAuditTrail
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message, java.lang.Class[] paramTypes, java.lang.Object[] args, java.lang.Object returnObject)

Method to add audit trail and trigger audit trail event

clean
public void clean()

Used by system to clear audit trail plugin caches

 

  • No labels