Package org.localify.venue
Interface VenueService
- All Known Implementing Classes:
VenueServiceImpl
public interface VenueService
Service for handling venue-related operations.
-
Method Summary
Modifier and TypeMethodDescriptioncreatePlaylist(Venue venue) Creates a playlist for a venue.voiddeleteById(UUID venueId, UUID actingUserId) Deletes a venue by its ID.getOrCreatePlaylist(UUID venueId) Gets or creates a playlist for a venue.getPreviousEvents(UUID venueId, PageOptions pageOptions, UUID userId) Gets the past events for a venue.getResponse(UUID venueId, UUID actingUserId) Gets a venue response by its ID.getUpcomingEvents(UUID venueId, PageOptions pageOptions, UUID userId) Gets the upcoming events for a venue.patchById(UUID valueId, VenuePatchRequest request, UUID actingUserId) Patches a venue by its ID.
-
Method Details
-
getResponse
Gets a venue response by its ID.- Parameters:
venueId- The ID of the venue.actingUserId- The ID of the user performing the action.- Returns:
- The venue response.
-
patchById
Patches a venue by its ID.- Parameters:
valueId- The ID of the venue.request- The patch request.actingUserId- The ID of the user performing the action.- Returns:
- The updated venue.
-
deleteById
Deletes a venue by its ID.- Parameters:
venueId- The ID of the venue.actingUserId- The ID of the user performing the action.
-
createPlaylist
Creates a playlist for a venue.- Parameters:
venue- The venue.- Returns:
- The playlist DTO.
-
getOrCreatePlaylist
Gets or creates a playlist for a venue.- Parameters:
venueId- The ID of the venue.- Returns:
- The playlist DTO.
-
getUpcomingEvents
List<EventResponseExtendedLocal> getUpcomingEvents(UUID venueId, PageOptions pageOptions, UUID userId) Gets the upcoming events for a venue.- Parameters:
venueId- The ID of the venue.pageOptions- The pagination options.userId- The ID of the user.- Returns:
- A list of event responses.
-
getPreviousEvents
List<EventResponseExtendedLocal> getPreviousEvents(UUID venueId, PageOptions pageOptions, UUID userId) Gets the past events for a venue.- Parameters:
venueId- The ID of the venue.pageOptions- The pagination options.userId- The ID of the user.- Returns:
- A list of event responses.
-