Package org.projectnessie.events.service
Interface VersionStoreEvent
-
@Immutable public interface VersionStoreEventAn internal event triggered when a result produced by the version store.This event is meant to capture the
Resultemitted 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 toEventService.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.StringgetRepositoryId()The repository id affected by the change.org.projectnessie.versioned.ResultgetResult()TheResultproduced 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()
TheResultproduced 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.
-
-