Package org.forgerock.audit.events
Class EventTopicsMetaData
java.lang.Object
org.forgerock.audit.events.EventTopicsMetaData
Encapsulates meta-data for event topics.
-
Constructor Summary
ConstructorDescriptionEventTopicsMetaData
(Map<String, JsonValue> eventTopicsMetaData) Create a new EventTopicsMetaData. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsTopic
(String topic) Returnstrue
if this object has meta-data for the specified topic.Returns a new instance ofEventTopicsMetaData
containing only the meta-data for topics held by this object that are named within providedtopics
parameter.getIncludeIfFilters
(String topic) Returns JSON Pointers to fields which should be automatically whitelisted for a given topic's schema.Returns the JSON schema for the requested topic if this object has meta-data for that topic.Returns the names of the set of topics for which this object has meta-data.
-
Constructor Details
-
EventTopicsMetaData
Create a new EventTopicsMetaData.- Parameters:
eventTopicsMetaData
- Event topic schemas mapped by event topic name.
-
-
Method Details
-
containsTopic
Returnstrue
if this object has meta-data for the specified topic.- Parameters:
topic
- The name of the topic to check.- Returns:
true
if this object has meta-data for the specified topic;false
otherwise.
-
getSchema
Returns the JSON schema for the requested topic if this object has meta-data for that topic. Otherwise, null is returned.- Parameters:
topic
- The name of the topic to check.- Returns:
- JSON schema if this object has meta-data for the specified topic;
null
otherwise.
-
getIncludeIfFilters
Returns JSON Pointers to fields which should be automatically whitelisted for a given topic's schema.Returns null if there is no meta-data for the requested
topic
.- Parameters:
topic
- The name of the topic to check.- Returns:
- JSON Pointers if this object has meta-data for the specified topic; null otherwise.
-
getTopics
Returns the names of the set of topics for which this object has meta-data.- Returns:
- set of topic names.
-
filter
Returns a new instance ofEventTopicsMetaData
containing only the meta-data for topics held by this object that are named within providedtopics
parameter.Any entries within
topics
that are not known to this object will not be included in the resultingEventTopicsMetaData
object.- Parameters:
topics
- The names of topics whose meta-data should be included.- Returns:
- a new instance of
EventTopicsMetaData
.
-