Class OMRSMetadataDefaultEventsSecurity
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.events.OMRSMetadataDefaultEventsSecurity
-
- All Implemented Interfaces:
OpenMetadataEventsSecurity
public class OMRSMetadataDefaultEventsSecurity extends Object implements OpenMetadataEventsSecurity
OMRSMetadataDefaultEventsSecurity provides a default instance events security filter that allows all events to pass unchanged. It is replaced if the server's security connector implements the events interface.
-
-
Constructor Summary
Constructors Constructor Description OMRSMetadataDefaultEventsSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMRSInstanceEventvalidateInboundEvent(String cohortName, OMRSInstanceEvent event)Validate whether an event received from another member of the cohort should be processed by this server.OMRSInstanceEventvalidateOutboundEvent(String cohortName, OMRSInstanceEvent event)Validate whether an event should be sent to the other members of the cohort by this server.
-
-
-
Method Detail
-
validateInboundEvent
public OMRSInstanceEvent validateInboundEvent(String cohortName, OMRSInstanceEvent event)
Validate whether an event received from another member of the cohort should be processed by this server.- Specified by:
validateInboundEventin interfaceOpenMetadataEventsSecurity- Parameters:
cohortName- name of the cohortevent- event that has been received- Returns:
- inbound event to process (may be updated) or null to indicate that the event should be ignored
-
validateOutboundEvent
public OMRSInstanceEvent validateOutboundEvent(String cohortName, OMRSInstanceEvent event)
Validate whether an event should be sent to the other members of the cohort by this server.- Specified by:
validateOutboundEventin interfaceOpenMetadataEventsSecurity- Parameters:
cohortName- name of the cohortevent- event that has been received- Returns:
- outbound event to send (may be updated) or null to indicate that the event should be ignored
-
-