public class AuditEventDispatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AuditEventDispatcher.RegisteredAuditSpecification
A RegisteredAuditSpecification holds information about a registered
AuditSpecification.
|
class |
AuditEventDispatcher.RegisteredGlobalAuditSpecification
A RegisteredGlobalAuditSpecification holds information about a registered
instance of the "Global history" AuditSpecification.
|
class |
AuditEventDispatcher.RegisteredObjectAuditSpecification
A RegisteredObjectAuditSpecification holds information about a registered
instance of the "Object history" AuditSpecification.
|
| Constructor and Description |
|---|
AuditEventDispatcher()
Constructs an AuditEventDispatcher, using a default cache configuration.
|
AuditEventDispatcher(BoundedCacheConfiguration cacheConfig)
Constructs an AuditEventDispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleAuditSpecificationEvents(LibrarySession session,
AuditEvent event)
Handle any events that pertain to changes in AuditSpecifications.
|
protected void |
handleFreedEvents(LibrarySession session,
AuditEvent event)
Handle any "Freed" events, in terms of deleting existing events.
|
protected void |
handleGlobalAuditTypeListChangeEvents(LibrarySession session,
AuditEvent event)
Handle any events that pertain to changes in a domain's
global audit type list.
|
void |
initialize(LibrarySession session)
Initialize or re-initialize the set of registered AuditSpecifications.
|
int |
processRawAuditEvents(LibrarySession session,
int batchSize)
Process any new raw audit events.
|
int |
processRawAuditEvents(LibrarySession session,
long minId,
int batchSize)
Process any new raw audit events.
|
public AuditEventDispatcher()
throws IfsException
IfsException - if the operation failspublic AuditEventDispatcher(BoundedCacheConfiguration cacheConfig) throws IfsException
cacheConfig - cache configuration for the AuditFolderPath cacheIfsException - if the operation failspublic void initialize(LibrarySession session) throws IfsException
session - session contextIfsException - if the operation failspublic int processRawAuditEvents(LibrarySession session, int batchSize) throws IfsException
session - session contextbatchSize - batch size to select the items; a
value of 0 implies a default batchsizeIfsException - if the operation failspublic int processRawAuditEvents(LibrarySession session, long minId, int batchSize) throws IfsException
session - session contextminId - the minimum ID to process; allows for processing
a subset of events for testing purposes.batchSize - batch size to select the items; a
value of 0 implies a default batchsize, and implies
that all events should be processedIfsException - if the operation failsprotected void handleAuditSpecificationEvents(LibrarySession session, AuditEvent event) throws IfsException
This is used to invalidate our caches of AuditSpecification information.
session - session contextevent - the AuditEvent to checkIfsException - if the operation failsprotected void handleGlobalAuditTypeListChangeEvents(LibrarySession session, AuditEvent event) throws IfsException
This is used to invalidate the cache used for the registered Global AuditSpecification.
session - session contextevent - the AuditEvent to checkIfsException - if the operation failsprotected void handleFreedEvents(LibrarySession session, AuditEvent event) throws IfsException
Currently frees all history from the object AuditSpecification for the object being freed.
session - session contextevent - the AuditEvent to checkIfsException - if the operation failsCopyright © 2025. All rights reserved.