|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.services.audit.AuditUtils
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(); }
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 |
public AuditUtils()
Method Detail |
public static void audit(java.lang.String requestId, java.util.Vector request, java.util.Vector response) throws ProcessingErrorException
requestId
- String.request
- Vector of datapackets.response
- Vector of datapackets.
ProcessingErrorException
public static void audit(java.util.Vector datapackets) throws ProcessingErrorException
ProcessingErrorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |