Class ActorCreatedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
de.gustavblass.fsu.fmi.roombooking.events.LocalisedEvent
de.gustavblass.fsu.fmi.roombooking.events.ActorCreatedEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnconfirmedRegistrationEvent
Signals that a new
actor was added to the system.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull ActorThe user that was newly saved to the database.Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionActorCreatedEvent(@NonNull Actor actor) Constructs a newActorCreatedEvent.ActorCreatedEvent(@NonNull Actor actor, @NonNull Locale locale) Constructs a newActorCreatedEvent. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class EventObject
toString
-
Field Details
-
actor
The user that was newly saved to the database.
-
-
Constructor Details
-
ActorCreatedEvent
Constructs a newActorCreatedEvent. Uses theLocale.getDefault().- Parameters:
actor- The user account that was just created.
-
ActorCreatedEvent
Constructs a newActorCreatedEvent.- Parameters:
actor- The user account that was just created.locale- TheLocalisedEvent.locale.
-
-
Method Details
-
getSource
- Overrides:
getSourcein classEventObject- Returns:
- The newly created
actor.
-