Class EventProviderWrapper<P extends EventProvider & ReadOnlyStatus.IsAware>

  • Type Parameters:
    P - event providers that adjust according to read-only status
    All Implemented Interfaces:
    EventProvider

    public class EventProviderWrapper<P extends EventProvider & ReadOnlyStatus.IsAware>
    extends java.lang.Object
    implements EventProvider
    An event provider that offers a unified view of multiple underlying event providers.
    Since:
    5.4.6
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ome.model.meta.Event updateEvent​(ome.model.meta.Event event)
      Persists a given Event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventProviderWrapper

        public EventProviderWrapper​(ReadOnlyStatus readOnly,
                                    java.util.List<P> providers)
        Construct a new event provider.
        Parameters:
        readOnly - the read-only status
        providers - 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)
    • Method Detail

      • updateEvent

        public ome.model.meta.Event updateEvent​(ome.model.meta.Event event)
        Description copied from interface: EventProvider
        Persists a given Event.
        Specified by:
        updateEvent in interface EventProvider
        Parameters:
        event - the event to persist
        Returns:
        updated event