Package passport.domain.contexts.events
Class EventEvaluation
java.lang.Object
passport.domain.contexts.events.EventEvaluation
-
Constructor Summary
ConstructorDescriptionEventEvaluation
(Events events, LocalDate currentDay) Constructor with the specified events repository. -
Method Summary
Modifier and TypeMethodDescriptionSets the author ID for the evaluation.void
evaluateWith
(String comment) Submits the evaluation with the given comment.Sets the event ID for the evaluation.
-
Constructor Details
-
EventEvaluation
-
-
Method Details
-
of
Sets the event ID for the evaluation.- Parameters:
event
- the event ID- Returns:
- the updated EventEvaluation object
-
by
Sets the author ID for the evaluation.- Parameters:
author
- the author ID- Returns:
- the updated EventEvaluation object
-
evaluateWith
Submits the evaluation with the given comment.- Parameters:
comment
- the evaluation comment- Throws:
NullPointerException
- if any of the required fields (events, eventId, authorId) are nullTryingToEvaluateActiveEvent
-