Package org.localify.dashboard
Class DashboardServiceImpl
java.lang.Object
org.localify.dashboard.DashboardServiceImpl
- All Implemented Interfaces:
DashboardService
@Service
@Transactional(readOnly=true)
public class DashboardServiceImpl
extends Object
implements DashboardService
Implementation of the
DashboardService interface.-
Constructor Summary
ConstructorsConstructorDescriptionDashboardServiceImpl(UserRepository userRepository, UserFavoriteArtistRepository userFavoriteArtistRepository, UserFavoriteEventRepository userFavoriteEventRepository, UserFavoriteVenueRepository userFavoriteVenueRepository, ArtistCityRepository artistCityRepository, UserCityRepository userCityRepository, UserRecommendationRepository userRecommendationRepository, UserRecentArtistViewRepository userRecentArtistViewRepository, UserRecentEventViewRepository userRecentEventViewRepository, UserRecentVenueViewRepository userRecentVenueViewRepository, UserRecentCityViewRepository userRecentCityViewRepository, EventRepository eventRepository, ArtistRepository artistRepository, CityRepository cityRepository, UserFeedbackRepository userFeedbackRepository, VenueRepository venueRepository, ArtistEventRepository artistEventRepository, UserSeedRepository userSeedRepository, PollstarDispatch pollstarDispatch, BandsInTownDispatch bandsInTownDispatch) Constructs a new DashboardServiceImpl. -
Method Summary
Modifier and TypeMethodDescriptionGets newly created artists statistics.Gets scraped artists statistics.Gets crowdsourcing statistics.Gets discovered artists statistics.Gets newly created events statistics.Gets scraped events statistics.Gets favorite statistics.Gets user feedback.Gets landing page statistics.Gets recommendation system statistics.Gets upcoming events statistics.Gets user statistics.Gets view statistics.voidScrapeArtistFromId(UUID localifyId) Triggers a scrape for an artist.voidScrapeCityFromId(UUID localifyId) Triggers a scrape for a city.
-
Constructor Details
-
DashboardServiceImpl
public DashboardServiceImpl(UserRepository userRepository, UserFavoriteArtistRepository userFavoriteArtistRepository, UserFavoriteEventRepository userFavoriteEventRepository, UserFavoriteVenueRepository userFavoriteVenueRepository, ArtistCityRepository artistCityRepository, UserCityRepository userCityRepository, UserRecommendationRepository userRecommendationRepository, UserRecentArtistViewRepository userRecentArtistViewRepository, UserRecentEventViewRepository userRecentEventViewRepository, UserRecentVenueViewRepository userRecentVenueViewRepository, UserRecentCityViewRepository userRecentCityViewRepository, EventRepository eventRepository, ArtistRepository artistRepository, CityRepository cityRepository, UserFeedbackRepository userFeedbackRepository, VenueRepository venueRepository, ArtistEventRepository artistEventRepository, UserSeedRepository userSeedRepository, PollstarDispatch pollstarDispatch, BandsInTownDispatch bandsInTownDispatch) Constructs a new DashboardServiceImpl.- Parameters:
userRepository- The user repository.userFavoriteArtistRepository- The user favorite artist repository.userFavoriteEventRepository- The user favorite event repository.userFavoriteVenueRepository- The user favorite venue repository.artistCityRepository- The artist-city repository.userCityRepository- The user-city repository.userRecommendationRepository- The user recommendation repository.userRecentArtistViewRepository- The user recent artist view repository.userRecentEventViewRepository- The user recent event view repository.userRecentVenueViewRepository- The user recent venue view repository.userRecentCityViewRepository- The user recent city view repository.eventRepository- The event repository.artistRepository- The artist repository.cityRepository- The city repository.userFeedbackRepository- The user feedback repository.venueRepository- The venue repository.artistEventRepository- The artist event repository.userSeedRepository- The user seed repository.pollstarDispatch- The Pollstar dispatch service.bandsInTownDispatch- The BandsInTown dispatch service.
-
-
Method Details
-
getUserStats
Description copied from interface:DashboardServiceGets user statistics.- Specified by:
getUserStatsin interfaceDashboardService- Returns:
- The user statistics.
-
getFavoriteStats
Description copied from interface:DashboardServiceGets favorite statistics.- Specified by:
getFavoriteStatsin interfaceDashboardService- Returns:
- The favorite statistics.
-
getCrowdsourcingStats
Description copied from interface:DashboardServiceGets crowdsourcing statistics.- Specified by:
getCrowdsourcingStatsin interfaceDashboardService- Returns:
- The crowdsourcing statistics.
-
getRecStats
Description copied from interface:DashboardServiceGets recommendation system statistics.- Specified by:
getRecStatsin interfaceDashboardService- Returns:
- The recommendation system statistics.
-
getViewStats
Description copied from interface:DashboardServiceGets view statistics.- Specified by:
getViewStatsin interfaceDashboardService- Returns:
- The view statistics.
-
getEventsScrapedStats
Description copied from interface:DashboardServiceGets scraped events statistics.- Specified by:
getEventsScrapedStatsin interfaceDashboardService- Returns:
- The scraped events statistics.
-
getEventsCreatedStats
Description copied from interface:DashboardServiceGets newly created events statistics.- Specified by:
getEventsCreatedStatsin interfaceDashboardService- Returns:
- The newly created events statistics.
-
getArtistsScrapedStats
Description copied from interface:DashboardServiceGets scraped artists statistics.- Specified by:
getArtistsScrapedStatsin interfaceDashboardService- Returns:
- The scraped artists statistics.
-
getArtistsCreatedStats
Description copied from interface:DashboardServiceGets newly created artists statistics.- Specified by:
getArtistsCreatedStatsin interfaceDashboardService- Returns:
- The newly created artists statistics.
-
getUpcomingEvents
Description copied from interface:DashboardServiceGets upcoming events statistics.- Specified by:
getUpcomingEventsin interfaceDashboardService- Returns:
- The upcoming events statistics.
-
getFeedback
Description copied from interface:DashboardServiceGets user feedback.- Specified by:
getFeedbackin interfaceDashboardService- Returns:
- A list of user feedback responses.
-
getLandingStats
Description copied from interface:DashboardServiceGets landing page statistics.- Specified by:
getLandingStatsin interfaceDashboardService- Returns:
- The landing page statistics.
-
getDiscoveredArtists
Description copied from interface:DashboardServiceGets discovered artists statistics.- Specified by:
getDiscoveredArtistsin interfaceDashboardService- Returns:
- The discovered artists statistics.
-
ScrapeCityFromId
Description copied from interface:DashboardServiceTriggers a scrape for a city.- Specified by:
ScrapeCityFromIdin interfaceDashboardService- Parameters:
localifyId- The ID of the city to scrape.
-
ScrapeArtistFromId
Description copied from interface:DashboardServiceTriggers a scrape for an artist.- Specified by:
ScrapeArtistFromIdin interfaceDashboardService- Parameters:
localifyId- The ID of the artist to scrape.
-