Interface OpenMetadataEventsSecurity

  • All Known Implementing Classes:
    OMRSMetadataDefaultEventsSecurity

    public interface OpenMetadataEventsSecurity
    OpenMetadataEventsSecurity defines the optional interface that an Open Metadata Server Security Connector can implement to control whether an event is either sent or received from a cohort. Simply implementing this interface means that the security connector will be called each time an event is to be sent or received from a cohort topic. It has two methods, one for sending and one for receiving. The parameters include the cohort name and the event contents. It can return the event unchanged, return a modified event (eg with sensitive content removed) or return null to say that the event is filtered out.
    • Method Detail

      • validateInboundEvent

        OMRSInstanceEvent validateInboundEvent​(java.lang.String cohortName,
                                               OMRSInstanceEvent event)
        Validate whether an event received from another member of the cohort should be processed by this server.
        Parameters:
        cohortName - name of the cohort
        event - event that has been received
        Returns:
        inbound event to process (may be updated) or null to indicate that the event should be ignored
      • validateOutboundEvent

        OMRSInstanceEvent validateOutboundEvent​(java.lang.String cohortName,
                                                OMRSInstanceEvent event)
        Validate whether an event should be sent to the other members of the cohort by this server.
        Parameters:
        cohortName - name of the cohort
        event - event that has been received
        Returns:
        outbound event to send (may be updated) or null to indicate that the event should be ignored