Interface VersionStoreEvent


  • @Immutable
    public interface VersionStoreEvent
    An internal event triggered when a result produced by the version store.

    This event is meant to capture the Result emitted by the store, correlated with the user that initiated the change, and the id of the repository affected by the change.

    This event is produced by a ResultCollector; it is not meant to be delivered as is to subscribers, but rather, to be forwarded to EventService.onVersionStoreEvent(VersionStoreEvent), then converted to one or many API events, which are in turn delivered to subscribers.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getRepositoryId()
      The repository id affected by the change.
      org.projectnessie.versioned.Result getResult()
      The Result produced by the version store.
      java.util.Optional<java.security.Principal> getUser()
      The user principal that initiated the change.
    • Method Detail

      • getResult

        org.projectnessie.versioned.Result getResult()
        The Result produced by the version store.
      • getRepositoryId

        java.lang.String getRepositoryId()
        The repository id affected by the change. Never null, but may be an empty string.
      • getUser

        java.util.Optional<java.security.Principal> getUser()
        The user principal that initiated the change. May be empty if authentication is disabled.