P
- event providers that adjust according to read-only statuspublic class EventProviderWrapper<P extends EventProvider & ReadOnlyStatus.IsAware> extends java.lang.Object implements EventProvider
Constructor and Description |
---|
EventProviderWrapper(ReadOnlyStatus readOnly,
java.util.List<P> providers)
Construct a new event provider.
|
Modifier and Type | Method and Description |
---|---|
ome.model.meta.Event |
updateEvent(ome.model.meta.Event event)
Persists a given
Event . |
public EventProviderWrapper(ReadOnlyStatus readOnly, java.util.List<P> providers)
readOnly
- the read-only statusproviders
- the event providers to wrap: the earlier providers are tried first and at least one provider must support
write operations according to ReadOnlyStatus.IsAware.isReadOnly(ReadOnlyStatus)
public ome.model.meta.Event updateEvent(ome.model.meta.Event event)
EventProvider
Event
.updateEvent
in interface EventProvider
event
- the event to persist