Package passport.roles.repositories
Interface Events
- All Known Implementing Classes:
EventsInMemory
,EventsJson
public interface Events
Interface for managing Event entities.
-
Method Summary
Modifier and TypeMethodDescriptionavailableOn
(LocalDate date) Lists all events available on a specific date.Retrieves an event by its ID.Retrieves an event by its title and date.boolean
Checks if an event exists by its title and date.boolean
Checks if an event exists by its ID.list()
Lists all events.void
Registers a new event.void
Updates an existing event.
-
Method Details
-
register
-
update
-
byId
-
event
-
list
-
availableOn
-
has
Checks if an event exists by its ID.- Parameters:
id
- the ID of the event- Returns:
- true if the event exists, false otherwise
-
has
-