public interface AuditEventHandlerContext
Modifier and Type | Method and Description |
---|---|
LibrarySession |
acquireAuxiliarySession()
Acquires an additional session context to use for processing.
|
AuditSpecification |
getAuditSpecification()
Returns the custom Audit Specification corresponding
to the "Audit History" associated with this handler, indicating
where the AuditEvents are posted.
|
Long |
getAuditSpecificationId()
Returns the custom Audit Specification ID corresponding
to the "Audit History" associated with this handler, indicating
where the AuditEvents are posted.
|
AttributeValue |
getHandlerProperty(String key)
Gets a property of the custom Audit Specification by its property name.
|
LibrarySession |
getLibrarySession()
Returns the session context to use for processing.
|
long |
getMinimumDispatchedEventId()
Returns the minimum event ID encountered when AuditEvents
were last dispatched in the handler.
|
long |
getNextSequenceId()
Returns the next sequence ID value that would have been leveraged for a
new Object created in the repository.
|
AttributeValue |
getNodeProperty(String key)
Gets a property of the running Node context.
|
AttributeValue |
getServerProperty(String key)
Gets a property of the running Server context.
|
boolean |
isDeactivated()
Determines whether a deactivation has occurred for this handler,
indicated that it should complete processing the current operation
as soon as possible.
|
void |
purgeEvent(AuditEvent event)
Purges an AuditEvent from its audit history.
|
void |
purgeEvents(AuditEvent[] events)
Purges a set of AuditEvents from their audit histories.
|
void |
removeHandlerProperty(String key)
Removes a property of the custom Audit Specification by its property name.
|
void |
restartAuditEventHandler()
Causes a reset of the handler settings.
|
void |
setDomainId(long domainId)
Sets the Domain that should be used while processing an AuditEvent.
|
void |
setHandlerProperty(String key,
AttributeValue value)
Sets a property of the custom Audit Specification.
|
LibrarySession getLibrarySession()
LibrarySession acquireAuxiliarySession() throws IfsException
IfsException
- if the operation failsLong getAuditSpecificationId()
Use this ID when using
AuditingUtilities.searchAuditHistory
to
find AuditEvents that have occurred that are of interest to this
handler.
AuditSpecification getAuditSpecification() throws IfsException
IfsException
- if the operation failsAttributeValue getHandlerProperty(String key) throws IfsException
key
- the Audit Specification property keyIfsException
- if the operation failsvoid setHandlerProperty(String key, AttributeValue value) throws IfsException
key
- the Audit Specification property keyvalue
- the Audit Specification property valueIfsException
- if the operation failsvoid removeHandlerProperty(String key) throws IfsException
key
- the Audit Specification property keyIfsException
- if the operation failsAttributeValue getServerProperty(String key) throws IfsException
key
- the Server property keyIfsException
- if the operation failsAttributeValue getNodeProperty(String key) throws IfsException
key
- the Node property keyIfsException
- if the operation failsvoid setDomainId(long domainId) throws IfsException
By default, this is the default Domain. In a multi-Domain instance, this must be set to the ID of the Domain for the AuditEvent that is being processed, because an AuditEventHandler will be invoked for Events that have occurred in any Domain in the instance.
A value of zero for the Domain ID will effectively clear the previously established Domain context.
domainId
- the ID of the Domain to use while processing an Event
or zero to clear the previously established
Domain contextIfsException
- if the operation failsvoid restartAuditEventHandler() throws IfsException
IfsException
- if the operation failsvoid purgeEvent(AuditEvent event) throws IfsException
event
- the AuditEvent to purgeIfsException
- if the operation failsvoid purgeEvents(AuditEvent[] events) throws IfsException
events
- the AuditEvents to purgeIfsException
- if the operation failsboolean isDeactivated()
long getNextSequenceId() throws IfsException
IfsException
- if the operation failslong getMinimumDispatchedEventId() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.