com.bankframe.services.audit
Class AuditUtils

java.lang.Object
  extended bycom.bankframe.services.audit.AuditUtils

public class AuditUtils
extends java.lang.Object

This utility class provides static methods for easily invoking the BankFrame MCA Audit Service.

This class will dispatch the request to the BankFrame Audit Provider specified in the BankframeResource.properties resource file under the audit.provider key.

Note: The BankFrame MCA Audit Service will throw a ProcessingErrorException if there are any errors detected while creating a new AuditRecord.

In many business cases, if the Audit Service fails to audit (e.g. throws an exception), then the current transaction will be required to be rolled-back and not commited. It is the responsibility of the developer to check for exceptions from the Audit Service and deal with them accordingly.

For example of calling the Audit Service from inside a Session EJB:

 try {
   AuditUtil.audit(datapacket);
 } catch (ProcessingErrorException) {
   this.getSessionContext().setRollbackOnly();
 }
 

Author:
ETU

Constructor Summary
AuditUtils()
           
 
Method Summary
static void audit(java.lang.String requestId, java.util.Vector request, java.util.Vector response)
          Add a new audit event.
static void audit(java.util.Vector datapackets)
          Add a new audit event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditUtils

public AuditUtils()
Method Detail

audit

public static void audit(java.lang.String requestId,
                         java.util.Vector request,
                         java.util.Vector response)
                  throws ProcessingErrorException
Add a new audit event.

Parameters:
requestId - String.
request - Vector of datapackets.
response - Vector of datapackets.
Throws:
ProcessingErrorException

audit

public static void audit(java.util.Vector datapackets)
                  throws ProcessingErrorException
Add a new audit event.

Throws:
ProcessingErrorException


Copyright © 2004 Siebel Systems, Inc. All rights reserved.