public interface EventHandlerContext
Modifier and Type | Method and Description |
---|---|
Long |
getAuditHistoryId()
Returns the custom Audit History ID where Events are posted.
|
NamedValue |
getAuditHistoryProperty(String key)
Gets a property of the custom Audit History by its property name.
|
long |
getNextItemId()
Returns the next sequence ID value that would have been leveraged for a
new Item/Object created in the repository.
|
FdkSession |
getSession()
Returns the session context to use for processing.
|
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(Event event)
Purges an Event from its audit history.
|
void |
purgeEvents(Event[] events)
Purges a set of Events from their audit histories.
|
void |
removeAuditHistoryProperty(String key)
Removes a property of the custom Audit History by its property name.
|
void |
restartEventHandler()
Causes a reset of the handler settings.
|
void |
setAuditHistoryProperty(String key,
NamedValue value)
Sets a property of the custom Audit history.
|
void |
setDomain(long domainId)
Sets the Domain that should be used while processing an Event.
|
FdkSession getSession()
long getNextItemId() throws FdkException
FdkException
- if the operation failsLong getAuditHistoryId()
NamedValue getAuditHistoryProperty(String key) throws FdkException
key
- the Audit History property keyFdkException
- if the operation failsvoid setAuditHistoryProperty(String key, NamedValue value) throws FdkException
key
- the Audit History property keyvalue
- the Audit History property valueFdkException
- if the operation failsvoid removeAuditHistoryProperty(String key) throws FdkException
key
- the Audit History property keyFdkException
- if the operation failsvoid setDomain(long domainId) throws FdkException
In a multi-Domain instance, this must be set to the ID of the Domain for the Event that is being processed, because an EventHandler 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.
Note that a Domain is sometimes referred to as a "Site".
domainId
- the ID of the Domain to use while processing an Event
or zero to clear the previously established
Domain contextFdkException
- if the operation failsvoid restartEventHandler() throws FdkException
FdkException
- if the operation failsvoid purgeEvent(Event event) throws FdkException
event
- the Event to purgeFdkException
- if the operation failsvoid purgeEvents(Event[] events) throws FdkException
events
- the Events to purgeFdkException
- if the operation failsboolean isDeactivated()
Copyright © 2023. All rights reserved.