Class DailyQuoteArtworkServiceImpl
java.lang.Object
com.espacogeek.geek.services.impl.DailyQuoteArtworkServiceImpl
- All Implemented Interfaces:
DailyQuoteArtworkService
@Service
public class DailyQuoteArtworkServiceImpl
extends Object
implements DailyQuoteArtworkService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByDate(Date date) Finds the daily quote and artwork for a specific date.Gets or creates the daily quote and artwork for today.save(DailyQuoteArtworkModel dailyQuoteArtwork) Saves a new daily quote and artwork.
-
Constructor Details
-
DailyQuoteArtworkServiceImpl
public DailyQuoteArtworkServiceImpl()
-
-
Method Details
-
findByDate
Description copied from interface:DailyQuoteArtworkServiceFinds the daily quote and artwork for a specific date.- Specified by:
findByDatein interfaceDailyQuoteArtworkService- Parameters:
date- The date to search for- Returns:
- Optional containing the DailyQuoteArtworkModel if found
- See Also:
-
save
Description copied from interface:DailyQuoteArtworkServiceSaves a new daily quote and artwork.- Specified by:
savein interfaceDailyQuoteArtworkService- Parameters:
dailyQuoteArtwork- The model to save- Returns:
- The saved DailyQuoteArtworkModel
- See Also:
-
getTodayQuoteArtwork
Description copied from interface:DailyQuoteArtworkServiceGets or creates the daily quote and artwork for today. If one doesn't exist for today, fetches a new random quote and artwork.- Specified by:
getTodayQuoteArtworkin interfaceDailyQuoteArtworkService- Returns:
- The DailyQuoteArtworkModel for today
- See Also:
-