public class JmsAuditEventHandler extends AuditEventHandlerBase
eventTopicsMetaData| Constructor and Description |
|---|
JmsAuditEventHandler(JmsContextManager jmsContextManager,
JmsAuditEventHandlerConfiguration configuration,
EventTopicsMetaData eventTopicsMetaData)
Creates a new AuditEventHandler instance that publishes JMS messages on a JMS Topic for each Audit event.
|
| Modifier and Type | Method and Description |
|---|---|
Promise<ResourceResponse,ResourceException> |
publishEvent(Context context,
String auditTopic,
JsonValue auditEvent)
Converts the audit event into a JMS TextMessage and then publishes the message on the configured jmsTopic.
|
Promise<QueryResponse,ResourceException> |
queryEvents(Context context,
String topic,
QueryRequest queryRequest,
QueryResourceHandler queryResourceHandler)
Returns NotSupportedException as query is not implemented for JMS.
|
Promise<ResourceResponse,ResourceException> |
readEvent(Context context,
String topic,
String resourceId)
Returns NotSupportedException as read is not implemented for JMS.
|
void |
shutdown()
Closes the JMS connection.
|
void |
startup()
Creates the JMS Topic and ConnectionFactory from the context configuration settings and opens the JMS connection.
|
getHandledTopics, getName, handleAction, isEnabled@Inject public JmsAuditEventHandler(JmsContextManager jmsContextManager, JmsAuditEventHandlerConfiguration configuration, EventTopicsMetaData eventTopicsMetaData) throws ResourceException
jmsContextManager - optional injected JmsContextManager.configuration - Configuration parameters that can be adjusted by system administrators.eventTopicsMetaData - Meta-data for all audit event topics.ResourceException - If JMS connections cannot be established.public void startup()
throws ResourceException
ResourceException - if starting the AuditEventHandler failspublic void shutdown()
throws ResourceException
ResourceException - if closing the AuditEventHandler failspublic Promise<ResourceResponse,ResourceException> publishEvent(Context context, String auditTopic, JsonValue auditEvent)
context - The context chain that initiated the event.auditTopic - The Audit Topic for which the auditEvent was created for. (Not to be confused with a JMS Topic)auditEvent - The event to convert to a JMS TextMessage and publish on the JMS Topic.public Promise<QueryResponse,ResourceException> queryEvents(Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler)
context - The context chain that initiated the event.topic - The topic on which query is performed.queryRequest - The request with the query.queryResourceHandler - The handler to process responses for the query.public Promise<ResourceResponse,ResourceException> readEvent(Context context, String topic, String resourceId)
context - The context chain that initiated the event.topic - The topic where event is read.resourceId - The identifier of the event.Copyright © 2025 Open Identity Platform Community. All rights reserved.