Package org.forgerock.audit.events
Class EventTopicsMetaData
java.lang.Object
org.forgerock.audit.events.EventTopicsMetaData
Encapsulates meta-data for event topics.
-
Constructor Summary
ConstructorsConstructorDescriptionEventTopicsMetaData(Map<String, JsonValue> eventTopicsMetaData) Create a new EventTopicsMetaData. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsTopic(String topic) Returnstrueif this object has meta-data for the specified topic.Returns a new instance ofEventTopicsMetaDatacontaining only the meta-data for topics held by this object that are named within providedtopicsparameter.getExcludeIfFilters(String topic) Returns JSON Pointers to fields which should be automatically deny listed for a given topic's schema.getIncludeIfFilters(String topic) Returns JSON Pointers to fields which should be automatically allow listed 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
Returnstrueif this object has meta-data for the specified topic.- Parameters:
topic- The name of the topic to check.- Returns:
trueif this object has meta-data for the specified topic;falseotherwise.
-
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;
nullotherwise.
-
getIncludeIfFilters
Returns JSON Pointers to fields which should be automatically allow listed 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.
-
getExcludeIfFilters
Returns JSON Pointers to fields which should be automatically deny listed 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 ofEventTopicsMetaDatacontaining only the meta-data for topics held by this object that are named within providedtopicsparameter.Any entries within
topicsthat are not known to this object will not be included in the resultingEventTopicsMetaDataobject.- Parameters:
topics- The names of topics whose meta-data should be included.- Returns:
- a new instance of
EventTopicsMetaData.
-