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 forEventobjects which is responsible for persisting and populating such entities using Hibernate in accordance with the currently availableIUpdateimplementation.- Since:
- 5.3.0
- See Also:
SecuritySystem
-
-
Constructor Summary
Constructors Constructor Description EventProviderInDb(ome.system.ServiceFactory sf)Main public constructor for thisEventProviderimplementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadOnly(ReadOnlyStatus readOnly)ome.model.meta.EventupdateEvent(ome.model.meta.Event event)Persists a givenEvent.
-
-
-
Constructor Detail
-
EventProviderInDb
public EventProviderInDb(ome.system.ServiceFactory sf)
Main public constructor for thisEventProviderimplementation.- Parameters:
sf- the service factory
-
-
Method Detail
-
updateEvent
public ome.model.meta.Event updateEvent(ome.model.meta.Event event)
Persists a givenEvent.- Specified by:
updateEventin interfaceEventProvider- Parameters:
event- the event to persist- Returns:
- updated event
-
isReadOnly
public boolean isReadOnly(ReadOnlyStatus readOnly)
- Specified by:
isReadOnlyin interfaceReadOnlyStatus.IsAware- Parameters:
readOnly- a read-only status, typically the current one- Returns:
- if that status puts this class into read-only mode
-
-