toolbox.services.util.audit
Interface AuditService

Package class diagram package AuditService
All Known Implementing Classes:
AuditServiceDbImpl

public interface AuditService

A simple auditing interface to add and find audit entries.


Method Summary
 void addEntry(AuditEntry entry)
          Add an AuditEntry to the persistent store.
 java.util.List findEntries(AuditEntryTO entryTO)
          Find audit entry instances.
 

Method Detail

addEntry

void addEntry(AuditEntry entry)
              throws ServiceException
Add an AuditEntry to the persistent store.

Parameters:
entry - The AuditEntry to add.
Throws:
ServiceException - if the entry cannot be added.

findEntries

java.util.List findEntries(AuditEntryTO entryTO)
                           throws ServiceException
Find audit entry instances.

Parameters:
entryTO - AuditEntryTO instance containing query parameters.
Returns:
List of AuditEntry instances.
Throws:
ServiceException - if the entries cannot be retreived.