Package ome.security.basic
Class EventProviderInDb
- java.lang.Object
-
- ome.security.basic.EventProviderInDb
-
- All Implemented Interfaces:
EventProvider
,ReadOnlyStatus.IsAware
public class EventProviderInDb extends java.lang.Object implements EventProvider, ReadOnlyStatus.IsAware
Provider forEvent
objects which is responsible for persisting and populating such entities using Hibernate in accordance with the currently availableIUpdate
implementation.- Since:
- 5.3.0
- See Also:
SecuritySystem
-
-
Constructor Summary
Constructors Constructor Description EventProviderInDb(ome.system.ServiceFactory sf)
Main public constructor for thisEventProvider
implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadOnly(ReadOnlyStatus readOnly)
ome.model.meta.Event
updateEvent(ome.model.meta.Event event)
Persists a givenEvent
.
-
-
-
Constructor Detail
-
EventProviderInDb
public EventProviderInDb(ome.system.ServiceFactory sf)
Main public constructor for thisEventProvider
implementation.- Parameters:
sf
- the service factory
-
-
Method Detail
-
updateEvent
public ome.model.meta.Event updateEvent(ome.model.meta.Event event)
Persists a givenEvent
.- Specified by:
updateEvent
in interfaceEventProvider
- Parameters:
event
- the event to persist- Returns:
- updated event
-
isReadOnly
public boolean isReadOnly(ReadOnlyStatus readOnly)
- Specified by:
isReadOnly
in interfaceReadOnlyStatus.IsAware
- Parameters:
readOnly
- a read-only status, typically the current one- Returns:
- if that status puts this class into read-only mode
-
-