Package ome.security.basic
Class EventProviderWrapper<P extends EventProvider & ReadOnlyStatus.IsAware>
- java.lang.Object
-
- ome.security.basic.EventProviderWrapper<P>
-
- 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
-
-
Constructor Summary
Constructors Constructor Description EventProviderWrapper(ReadOnlyStatus readOnly, java.util.List<P> providers)
Construct a new event provider.
-
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 givenEvent
.
-
-
-
Constructor Detail
-
EventProviderWrapper
public EventProviderWrapper(ReadOnlyStatus readOnly, java.util.List<P> providers)
Construct a new event provider.- Parameters:
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 toReadOnlyStatus.IsAware.isReadOnly(ReadOnlyStatus)
-
-
Method Detail
-
updateEvent
public ome.model.meta.Event updateEvent(ome.model.meta.Event event)
Description copied from interface:EventProvider
Persists a givenEvent
.- Specified by:
updateEvent
in interfaceEventProvider
- Parameters:
event
- the event to persist- Returns:
- updated event
-
-